src/SqlGenerator.php
protected function generateCountSQL()
        {
            $sql = ($this->query->isDistinct()) ? 'SELECT COUNT(DISTINCT ' : 'SELECT COUNT(';
            $sql .= Query::quoteIdentifier($this->query->getSelectionColumn($this->getTable()->getIdColumn()));
            $sql .= ') as num_col';

            return $sql;
        }
protected function generateCountSQL()
        {
            $sql = ($this->query->isDistinct()) ? 'SELECT COUNT(DISTINCT ' : 'SELECT COUNT(';
            $sql .= Query::quoteIdentifier($this->query->getSelectionColumn($this->getTable()->getIdColumn()));
            $sql .= ') as num_col';

            return $sql;
        }
protected function generateCountSQL ( ) { $ sql = ( $ this -> query -> isDistinct ( ) ) ? 'SELECT COUNT(DISTINCT ' : 'SELECT COUNT(' ; $ sql .= Query :: quoteIdentifier ( $ this -> query -> getSelectionColumn ( $ this -> getTable ( ) -> getIdColumn ( ) ) ) ; $ sql .= ') as num_col' ; return $ sql ; }
Generate the "count" part of the query

@return string
Generate the count part of the query