Describe how the discriminant of a quadratic equation is related to the number of real solutions the equation has.