Renamed getPages() to getPageCount()