How to count identical string elements in a Ruby array How to count identical string elements in a Ruby array ruby ruby