You knew it, didn't you? Don't forget, we can also use the size and the count methods to get the number of elements in a hash.
size
count
Maybe there's a better way? It's similar to arrays.