How do you find the number of complex roots in a function?

For a quadratic, evaluate the discriminant b^2 -4ac.

If it is negative the function has two complex roots.
For other functions, the question is to vague.