using System.Collections.Generic;
public static void Main()
string str = "I am .net developer developer developer and I am developing .net app app";
string[] arr = str.Split(' ');
Dictionary<string,int> output = new Dictionary<string,int>();
if(output.ContainsKey(word))
var order = output.OrderByDescending(x=>x.Value);
foreach( var pair in order)
Console.WriteLine("{0}:{1}",pair.Key,pair.Value);