in reply to using hashes to count

You don't need that exists-clause:

my %rh_count; $rh_count{$string}++;
is just fine.

But you are not summing the values up, you are merely counting them - is that what you want?

(Update: corrected spelling)