Calculates the maximum number of pages, based on the number of items and items per page.
The maximum number of pages.