I have a python object which stores details of countries, what method should I implement to allow running the object into len(ObjectInstance)?
For example, I want to count all the countries in the instance and I must use len() the function because its a third party call/external.
How can I implement a method that would be called when len() is executed against the instance?