Solution:
There are 9 books: