Bash appreciation thread

How did you write the Python implementation? collections.Counter can give some surprising speed-ups because it implements a certain three-line function in C.
mawk probably is better at that kind of task in general though.

BASH is the cancer of UNIX.

I was a split -> filter -> map (for tolower) ->Counter