The question can be equated to the counting of solutions to the following diophantine equation: $$4a^4x^2\pm y^2=\Delta_f,$$ where $\Delta_f=b^2-4a^2c$ and plus\minus relate to considering when $f(x)=-\square$ or $\square$. This follows from the fact that if $\pm \square=a^2x_1^2+bx_1+c$, then substituting $x=x_1+\frac{b}{2a^2}$ and clearing the denominator we get the above equation.
In the special case when $a=1$ more can be said. In particular, for counting negatives squares, there are known formulas for the $r_2(\Delta_f)$.