The answer is 20.

**
This section requires Javascript.
**

You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.

From 1 to 89 (both numbers included) there are nine 9s.

From 90 to 98 (both numbers included) there are 9 nines.

And 99 has 2 nines. 2 + 9 + 9 = 20