How many times the digit 9 will appear if one counts from 1 to 100?

Answer: 
20
How many times the digit 9 will appear if one counts from 1 to 100?