The number of books is *not* constrained, they are infinite. The number of unique books is constrained by the number a characters in a book and the possible values of the characters. No different than the possible numbers constructed of a finite number of digits with a finite number of possible values for each digit. Clearly not infinite and in fact countable.