2. The number of real roots of the equation $\sin x=\lg x$ is
2. 3 .

According to the graphs of the functions $y=\sin x$ and $y=\lg x$, in the interval $x \in(0,10)$, it can be seen that their graphs have 3 intersection points, and the equation $\sin x=\lg x$ has three roots.