in reply to Array Question

Count using a hash:
my %count; ++$count{$_} for @letters;

Caution: Contents may have been coded under pressure.