How many of the first 1000 positive integers can be expressed in the form

[2x]+[4x]+[6x]+[8x],

where x is a real number, and [z] denotes the greatest integer less than or equal to z?

(第三届AIME1985 第10题)