string[] fruits = File.ReadAllLines("fruit.txt");

foreach (var g in fruits.ToLookup(x => x))
Console.WriteLine("{0} {1}", g.Key, g.Count());

こんなんとか