A 47
This is up to the DM to decide.
The description for wizard spellcasting says that they can "know" any number of spells, but it doesn't elaborate on what spells are treated as "known."
I would personally rule that he only "knows" spells which he is able to prepare. Therefore, if he loses his spellbook, he no longer "knows" the spells contained within it.