@array=keys(%hash); $size=$#array; [download]
Originally posted as a Categorized Question.
In reply to How can I find the number of elements in a hash? by Malkavian