A printer numbers the pages of a book starting with 1 and uses 3089 digits in all. How many pages does the book have?

a) 121
b) 352
c) 488
d) 676