if (scalar @{$count->{$state}}) {
printf "%s: %d", uc($state), scalar @{$count->{$state}};
if ($state_mapping{$state} > 0) {
print ": ", join(', ', @{$count->{$state}});
};
print "; ";
if (scalar @{$count->{$state}}) {
printf "%s: %d", uc($state), scalar @{$count->{$state}};
if ($state_mapping{$state} > 0) {
print ": ", join(', ', @{$count->{$state}});
};
print "; ";