public function count()
    {
        // Get the current statements
        $originalStatements = $this->statements;

        unset($this->statements['orderBys']);
        unset($this->statements['limit']);
        unset($this->statements['offset']);

        $count = $this->aggregate('count');
        $this->statements = $originalStatements;

        return $count;
    }
public function count()
    {
        // Get the current statements
        $originalStatements = $this->statements;

        unset($this->statements['orderBys']);
        unset($this->statements['limit']);
        unset($this->statements['offset']);

        $count = $this->aggregate('count');
        $this->statements = $originalStatements;

        return $count;
    }
public function count ( ) { // Get the current statements $ originalStatements = $ this -> statements ; unset ( $ this -> statements [ 'orderBys' ] ) ; unset ( $ this -> statements [ 'limit' ] ) ; unset ( $ this -> statements [ 'offset' ] ) ; $ count = $ this -> aggregate ( 'count' ) ; $ this -> statements = $ originalStatements ; return $ count ; }
Get count of rows

@return int
Get count of rows