Updated Pagination Class To Show Number Of Pages