public function count()
    {
        if (!$this->_started) {
            $this->rewind();
        }

        while ($this->valid()) {
            $this->next();
        }

        return $this->_buffer->count();
    }
public function count()
    {
        if (!$this->_started) {
            $this->rewind();
        }

        while ($this->valid()) {
            $this->next();
        }

        return $this->_buffer->count();
    }
public function count ( ) { if ( ! $ this -> _started ) { $ this -> rewind ( ) ; } while ( $ this -> valid ( ) ) { $ this -> next ( ) ; } return $ this -> _buffer -> count ( ) ; }
Returns the number or items in this collection

@return int
Returns the number or items in this collection