How many times will the digit `7' be written when writing the integers from 1 to 1000?
How many times does the digit '3' appear in numbers from 1 to 199?