my $sum= map {(1)x$_} @counts; # Just say "No" to this code (: [download]
In reply to sum of counts by tye