make CountBooks streamlined, i.e. not put more than 10k pages in memory at the same time