Make document count fetch optional
Obey page size setting