Step 1: Condition for equal roots.
For a quadratic equation
\[
ax^2+bx+c=0,
\]
equal roots occur when the discriminant is zero:
\[
D=b^2-4ac=0
\]
Here,
\[
a=1,\quad b=2m+1,\quad c=m
\]
Therefore,
\[
(2m+1)^2-4(1)(m)=0
\]
Step 2: Simplify the equation.
Expanding,
\[
4m^2+4m+1-4m=0
\]
\[
4m^2+1=0
\]
\[
4m^2=-1
\]
\[
m^2=-\frac14
\]
Step 3: Check for real values of \(m\).
Since
\[
m^2=-\frac14
\]
has no real solution, there is no real value of \(m\).
Hence, the number of real values of \(m\) is
\[
0
\]
Step 4: Final conclusion.
Therefore,
\[
\boxed{0}
\]