$collection->count() Counts all elements kirby/src/Toolkit/Iterator.php#L127 $collection->count(): int Return type int Parent class Kirby\Cms\Collection inherited from Kirby\Toolkit\Iterator