Skip to content

Kirby 4.4.1

$collection->count()

Counts all elements

$collection->count(): int

Return type

int

Parent class

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