Skip to content

Kirby 4.4.1

$collection->count()

Counts all elements

$collection->count(): int

Return type

int

Parent class

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