CountRoots
CountRoots[f,x] gives the number of real roots of the univariate function f in x.
CountRoots[f,{x,a,b}] gives the number of roots between a and b.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.