2021 AIME I Problem 3

Find the number of positive integers less than 1000 that can be expressed as the difference of two integral powers of 2.