$pagination->items()

Returns the total number of items

  • return (integer)

Example

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

echo 'There are ' . $pagination->items() . ' in total';