.
(a) These numbers are all 4-digit numbers from 1000 to 1999, inclusive.
The number of such numbers is 1000. ANSWER
Regarding part (b), it is UNCLEAR what restrictions do you mean in this case.
Do not place two questions in one post, since doing it, you DISMISS YOURSELVE.