in reply to Help with Hash

Untested:
foreach my $key (sort {$count{$a} <=> $count{$b}} keys %count) { ... }