Something along these lines is relatively simple and will provide you with a count of duplicates.
var something = new List() { "One", "One", "Two", "Three" };
var dictionary = new Dictionary();
something.ForEach(s =>
{
if (dictionary.ContainsKey(s))
{
dictionary[s]++;
}
else
{
dictionary[s] = 1;
}
});
I imagine this is similar to the implementation of Distinct, although I'm not certain.