Hi @T.Zacks ,
If you mean that you only want two words/counts, the one that has the max occurrence and the one that has the min occurrence, then maybe you want something like this:
var result =
(
data.GroupBy(item => item)
.Select(itemGroup => new { Item = itemGroup.Key, Count = itemGroup.Count() })
.OrderByDescending(Item => Item.Count).ThenBy(Item => Item.Item)
).ToList();
Console.WriteLine("{0} {1}\r\n{2} {3}", result.First().Item, result.First().Count, result.Last().Item, result.Last().Count);
Note that I have used OrderByDescending for the Count, so it will show max first, and ThenBy, which will return the Item alphabetically if the Counts are the same.
I hope that this is what you're asking for. =0)
~~Bonnie DeWitt [MVP since 2003]
http://geek-goddess-bonnie.blogspot.com