$pagination->pages() Returns the total number of pages kirby/src/Toolkit/Pagination.php#L144 $pagination->pages(): int Return type int Parent class Kirby\Toolkit\Pagination