Revert "adding countPages"

This reverts commit 4986acadd677bce02ebb7f1f1842d8a8f0a5632d.