find some error in getPageCounts