in reply to using hashes to count
my %rh_count; $rh_count{$string}++; [download]
But you are not summing the values up, you are merely counting them - is that what you want?
(Update: corrected spelling)
Perl 6 in German