Word frequency count FIXED by ksk

_=$<.read.downcase.tr('^a-z ','').split.sort
puts$*|_.map{|w|[_.grep(w).size,w]*' '}

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

download

return top