Find the number of integers $a$ with $1 \le a \le 2012$ for which there exist nonnegative integers $x, y, z$ satisfying the equation:
\[ x^2(x^2 + 2z) - y^2(y^2 + 2z) = a. \]

Let's think step by step and output the final answer within \boxed{}.
user