public function count()
    {
        if (is_array($this->_model)) {
            return count($this->_model);
        } else {
            return $this->_model->count();
        }
    }
public function count()
    {
        if (is_array($this->_model)) {
            return count($this->_model);
        } else {
            return $this->_model->count();
        }
    }
public function count ( ) { if ( is_array ( $ this -> _model ) ) { return count ( $ this -> _model ) ; } else { return $ this -> _model -> count ( ) ; } }
Gets the number of results.

@return int
Gets the number of results .