How many of the integers between $1$ and $1000$, inclusive, can be expressed as the difference of the squares of two nonnegative integers?

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