var results = employees.GroupBy(e => e.Department).
Select(d => new { Department = d.Key, Size = d.Count()});
var results = from e in employees
group e by e.Department into d
select new { Department = d.Key,
Size = d.Count() };