public function getCount()
    {
        if ($this->_count !== null) {
            return $this->_count;
        }

        while ($this->_hasMore) {
            $this->fetchOutstanding();
        }

        return $this->_length;
    }
public function getCount()
    {
        if ($this->_count !== null) {
            return $this->_count;
        }

        while ($this->_hasMore) {
            $this->fetchOutstanding();
        }

        return $this->_length;
    }
public function getCount ( ) { if ( $ this -> _count !== null ) { return $ this -> _count ; } while ( $ this -> _hasMore ) { $ this -> fetchOutstanding ( ) ; } return $ this -> _length ; }
Get the total number of results in the cursor

This might issue additional HTTP requests to fetch any outstanding
results from the server

@throws Exception
@return int - total number of results
Get the total number of results in the cursor