From: Vitaliy Yanchuk Date: 2010-07-20T22:47:27+09:00 Subject: Count occurences of vars in array Hello, everyone. Would be grateful if someone can tell, how can I do shortly (mb with one method) from such example array ["a", "b", "a", "c", "c", "b", "b"] The result a => 2 b => 3 c => 2 So, to count number of occurances -- Posted via http://www.ruby-forum.com/.