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 appreciation thread
Robert Lopez
Jordan Rodriguez
BASH is the cancer of UNIX.
Asher Stewart
I was a split -> filter -> map (for tolower) ->Counter