I don't know exactly how many books there are, but I'm fairly sure you could fit them all into the medium or larger houses, but there may not be much space for anything else.
The tricky part will be shelves as there's surprisingly few bookcases where the shelves are far enough apart to fit books. You can put them in anyway but they'll clip through the shelves which often looks weird and can make them impossible to interact with.