On the number of integral quadratic polynomials with bounded heights and discriminants