in reply to Counting number of keys in a hash.

my $count = keys %hash;