Can this be done using C# Linq?
For example:
peter piper picked a pack of pickled peppers, the peppers were sweet and sower for peter, peter thought
Result:
peter 3
peppers 2
picked 1
...
I can do it with a nested for loop, but was thinking there is a more concise, resource light way using Linq.
You can use GroupBy: