Let's say I have this string:
string common = "Blue;Red;Red;Green;Green;Green;Blue;Blue;Blue;Yellow";
Now I want to count, how often these words appear in this string.
I don't know how the string is going to look like. It's diffrent every time.
I want a variable for each word in the string, that contains a number how often the word appeared in the string.
So I should get something like:
Blue: 4
Red: 2
Green: 3
Yellow: 1