src/Iterator/DocumentIterator.php
public function count()
    {
        if (!isset($this->count)) {
            $this->count = $this->repository->count($this->query);
        }
        return $this->count;
    }
public function count()
    {
        if (!isset($this->count)) {
            $this->count = $this->repository->count($this->query);
        }
        return $this->count;
    }
public function count ( ) { if ( ! isset ( $ this -> count ) ) { $ this -> count = $ this -> repository -> count ( $ this -> query ) ; } return $ this -> count ; }
Count number of document from collection

@return integer
Count number of document from collection