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

(第十五届AIME1997 第1题)