Expose the total number of pages in a pagination.

This makes it possible to access the total number of pages in a pagination through `page_data.total_pages`.