For how many positive integers $$n < 1000$$ does it hold that $$n$$ is a multiple of 9 and the sum of the squares of $$n$$'s digits is also a multiple of 9?