in reply to How can I find the number of elements in a hash?

print scalar(keys %h);