Word frequency count FIXED by eban

a=$<.read.downcase.tr('!-`~','').split.sort
puts$*|a.map{|w|[a.count(w),w]*' '}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top