A little word counter written in Ruby