Maybe You may be asking about Descarte's Method.
Consider a polynomial f(x)
Then count the number of sign changes.
It will be clear with an example
Let f(x) be 6x^3+4x^2-34x+5
So there are in total 2 sign changes one at 34 and other at 5 .
So what we can conclude is that there are either 2 positive real roots or 0 positive real roots
If the number of sign changes are odd, say 3, then there are either 3 positive real roots or 1 real root.
SO in general if the number of sign changes is even say n , then there are n or n-2 or n-4 .... uptill 0 positive real roots and if it is odd say n , then there are n or n-2 or n-3 ...1 positive real roots.
Now if we substitute -x in f(x) i.e. f(-x) and then count the number of sign changes following the above rule then instead of positive real roots it will be negative real roots.
Thus we can tell by looking at any polynomial about its roots. Your statement that 'number of roots of a polynomial equals the number of Sign changes' means this, I suppose.
I hope you are clear with this explanation.