Hi Tom,
That approach is fine.
For a radix tree,
Iterables.count(myTree.getValuesForKeysStartingWith(""))
is also option for calculating number of keys/values stored, as all keys are considered to start with an empty string.
I'll consider adding a size() method in future which would make this more obvious/straightforward.
Note that calculating the size (number of keys/values) of the tree is an O(n) operation, so is quite expensive as it requires the whole tree to be traversed.