Revised paginator to count pages and hide MORE button if there are no more pages.