Okay. You will be knowing the formula for x which we get by completing the squares. $$x={-b\pm\sqrt(b^2-4ac)\over 2a}$$ Hence the basic thing is that $\sqrt(b^2-4ac)$ must be an integer. Which implies $b^2-4ac$ must be a whole square. Doing this for the two quadratic equations we get: $$a^2-4b=m^2$$
$$a^2-4b-4=n^2$$ For m,n in integers. Notice carefully that the two squares differ by 4.This doesn't happen for any integer. You can easily check this. The first few squares are 1,4,9,16......for The difference between the squares is is 3,5,7 and this keeps on increasing.The difference is 4 only for $0^2$ and $2^2$. Hence $b^2-4ac=4$ $$x={-a\pm\sqrt(a^2-4b)\over2}$$ Now we know that $\sqrt(a^2-4b)=2$. Hence if x has to be an integer then a is even. What about b? We know that $a^2-4b=4$, hence $$a=2\sqrt(b+1)$$ So b has to be of the form $n^2-1$ for n<1000. Which means a=2n but a<1000, this further restricts n to n<500. Hence we have 499 ordered pairs.