In my book, it's written that we can guess how many roots an equation might have and where they approximately are by its graph or the table of function values without trying to solve it. There's an example afterward, doing that for $f(x)=\sin x -x +0.5=0$ starting from $-1\leq \sin x \leq 1$.
The problem is, it's not always that easy to guess how many roots it has. In the exercise at the end of this section, it's asking about $\sin x=x(x-2)(x-3)$ and $x^2 \cos^2 x-1=0$. I don't know what to do about them and where should I start from.