public final function CountByField($distinct, $field, $value,  Sql\GroupList $groupBy = null)
        {
            $where = $this->FieldCondition($field, $value);        
            return $this->Count($distinct, $where, $groupBy);
        }
public final function CountByField($distinct, $field, $value,  Sql\GroupList $groupBy = null)
        {
            $where = $this->FieldCondition($field, $value);        
            return $this->Count($distinct, $where, $groupBy);
        }
public final function CountByField ( $ distinct , $ field , $ value , Sql \ GroupList $ groupBy = null ) { $ where = $ this -> FieldCondition ( $ field , $ value ) ; return $ this -> Count ( $ distinct , $ where , $ groupBy ) ; }
Returns count by field value.
@param boolean $distinct True if distinct count shall be applied
@param string $field Field name
@param mixed $value A fitting value type, TableObject or mappable object (e.g. Date)
@param Sql\GroupList $groupBy
@return int
Returns count by field value .