$pagination->pages() Returns the total number of pages kirby/src/Toolkit/Pagination.php#L198 $pagination->pages(): int Return type int Parent class Kirby\Cms\Pagination inherited from Kirby\Toolkit\Pagination <?php $subpages = $page->children()->paginate(10); $pagination = $subpages->pagination(); echo 'There are ' . $pagination->pages() . ' pages'; ?>