Rails Array Count Ereignisse von Elementen
names.inject(Hash.new(0)) { |total, e| total[e] += 1 ;total}
Encouraging Emu
names.inject(Hash.new(0)) { |total, e| total[e] += 1 ;total}