How many digits has a notebook with 30 pages

1 through 9 = 9

10 through 30 = 21 * 2 = 42

Add the two.