Algorithm to Count the number of 9's between 1000 and 2000
Can anyone please let me the efficient algorithm to count the number of 9's present between 1000 and 2000.

Thanks in Advance
Algorithm to Count the number of 9's between 1000 and 2000
===

Can anyone please let me the efficient algorithm to count the number of 9's present between 1000 and 2000.

Thanks in Advance