Add the number of pages to paginated collection metadata