Dictionary.KeyCount
From Xojo Documentation
Read-Only Property (As Integer )
The number of key-value pairs in the Dictionary.
Notes
Returns the actual Count, not the Ubound of an array.
Sample Code
The following code displays the number of key-value pairs: