设\(f(x)\)是定义在\(R\)上且周期为\(1\)的函数,在区间\([0,1)\)上,\(f(x)=\begin{cases} x^{2}\mathrm{{,}}x\mathrm{{∈}}D\mathrm{{,}} \\ x\mathrm{{,}}x\mathrm{{∉}}D\mathrm{{,}} \end{cases}\)其中集合\(D=\left\{ x\left| x{=}\dfrac{n\mathrm{{-}}1}{n} \right.\ \mathrm{{,}}n\mathrm{{∈}}N^{\mathrm{{*}}} \right\}\),则方程\(f(x)-\lg x=0\)的解的个数是____\(.\)