Doctrine\ODM\MongoDB\CommandCursor::count PHP Method

count() public method

Recreates the command cursor and counts its results.
See also: http://php.net/manual/en/countable.count.php
public count ( ) : integer
return integer
    public function count()
    {
        return $this->commandCursor->count();
    }