public function columnCount()
    {
        if(empty($this->_resultData) || empty($this->_resultData->result)){
            return 0;
        }

        return count(@$this->_resultData->result[0]);
    }
public function columnCount()
    {
        if(empty($this->_resultData) || empty($this->_resultData->result)){
            return 0;
        }

        return count(@$this->_resultData->result[0]);
    }
public function columnCount ( ) { if ( empty ( $ this -> _resultData ) || empty ( $ this -> _resultData -> result ) ) { return 0 ; } return count ( @ $ this -> _resultData -> result [ 0 ] ) ; }
Returns the number of columns in the result set

@return int
Returns the number of columns in the result set