public function addFieldCount($field, $alias = null)
    {
        $this->addField(new Func('count', $field), $alias); return $this;
    }
public function addFieldCount($field, $alias = null)
    {
        $this->addField(new Func('count', $field), $alias); return $this;
    }
public function addFieldCount ( $ field , $ alias = null ) { $ this -> addField ( new Func ( 'count' , $ field ) , $ alias ) ; return $ this ; }
Shortcut to add a count function

->addFieldCount('id')

@param string                $field
@param string                $alias
@return self The current query builder.
Shortcut to add a count function