public function getColumnCount()
    {
        if (empty($this->_results)) {
            return 0;
        }
        $results = $this->_results;
        $firstRow = reset($results);
        return count($firstRow);
    }