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