in reply to find a number of keys in a hash

scalar(keys(%hash_name))