iterator_count

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Count the elements in an iterator
<?php iterator_count(Traversable|array $iterator): int
<?php             return count($this->source);

        }



        return iterator_count($this->getIterator());

    }