Hi,

How can I count all keys in an array?

For instance, I want to do this

>> countme = [1,2,3,4,4,4,4,4,5]
=> [1, 2, 3, 4, 4, 4, 4, 4, 5]
>> countme.count
=> 9

but in ruby 1.8.6, there is only size which doesn't quite work...

-- 
Posted via http://www.ruby-forum.com/.