public function count()
    {
        if ($this->action() !== self::ACTION_READ) {
            return 0;
        }

        if (!$this->__resultSet) {
            $this->_execute();
        }

        if ($this->__resultSet) {
            return $this->__resultSet->total();
        }

        return 0;
    }
public function count()
    {
        if ($this->action() !== self::ACTION_READ) {
            return 0;
        }

        if (!$this->__resultSet) {
            $this->_execute();
        }

        if ($this->__resultSet) {
            return $this->__resultSet->total();
        }

        return 0;
    }
public function count ( ) { if ( $ this -> action ( ) !== self :: ACTION_READ ) { return 0 ; } if ( ! $ this -> __resultSet ) { $ this -> _execute ( ) ; } if ( $ this -> __resultSet ) { return $ this -> __resultSet -> total ( ) ; } return 0 ; }
Returns the total amount of results for this query

@return int
Returns the total amount of results for this query