Additional solution

Using collections.Counter data structure.