How many positive integers less than $1000$ have the property that the sum of the digits of each such number is divisible by $7$ and the number itself is divisible by $3$?

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