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