How do you find the length of an Associative Array?

How do you find the length of an Associative Array? The standard “arrayName.length” returns 0.

Cheers,
c