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