hi try this,
string StrValue_FD = "Hello hi Hi hello length and are you length hi.";
var split = StrValue_FD.ToUpper().Split(' ');
int length = split.Length;
List<string> list = new List<string>();
while (length > 0)
{
list.Add(split[length - 1]);
length--;
}
var result = list.GroupBy(str => str).ToDictionary(str => str.Key, str => str.Count());</string></string>
you can try this example. In result you can get the each word number of times occured.