Dictionary<string, int> StringCount = new Dictionary<string, int>();
foreach (var item in StrArr)
{
if (!StringCount.ContainsKey(item))
StringCount.Add(item, 1);
else StringCount[item] += 1;
}