(pager) fixed bug in calculation for pageCount