Divisively so

How many numbers less than 1000 are NOT divisible by either: a) 2 or 5; or b) 2, 5 or 7?

Problem

How many numbers less than 1000 are NOT divisible by either:

a) 2 or 5

b) 2, 5 or 7