Skip to content

Kirby 4.5.0

$collection->count()

Counts all elements

$collection->count(): int

Return type

int

Parent class

Kirby\Cms\Collection inherited from Kirby\Toolkit\Iterator