Using the discriminant of the quadratic formula to find the number of roots.