Moved resetPageCount()