I have a list of items that looks like this:
Now I want to count the number of occurrences of each item. The result should look like this:
How can I do that? It is important to note that this should be flexible. That means if I add item
F to the list, that item should also be considered in the result.