keys
$num_keys = scalar keys %hash;
In void context it just resets the iterator, which is faster for tied hashes.