This function counts the number of times each letter appears in a string, then display the one that appears the most, and the number of times it appears. If there's a tie, it shows all of them, like bz,5.I've got the feeling this could be done much better. Suggestions?private static void LinqTest(){    const string testString = abbsabwertbfacsfgggdfgascd;    var count = 0;    var charGroups = (from c in testString                      group c by c into g                      select new                      {                          c = g.Key,                          count = g.Count(),                      }).OrderByDescending(c => c.count);    foreach (var @group in charGroups.Where(@group => count <= @group.count))    {        Console.WriteLine(@group.c + :  + @group.count);        count = @group.count;    }}
Counting the occurrence of each letter in a string
c#;strings;linq