fork download
  1. puts $<.read.scan(/\w+/).group_by(&:itself).map {|a, b| '%s %d' % [a, b.size]}
Success #stdin #stdout 0s 6320KB
stdin
Hoge
Fuga
Foo
Fuga
Foo
Hoge
Bar
Fuga
stdout
Hoge 2
Fuga 3
Foo 2
Bar 1