def __len__(self):
        """
        Returns:

        - A count of the total number of members/items/nodes inserted
        into this quadtree and all of its child trees.
        """
        size = 0
        for child in self.children:
            size += len(child)
        size += len(self.nodes)
        return size
def __len__ ( self ) : size = 0 for child in self . children : size += len ( child ) size += len ( self . nodes ) return size
Returns:

        - A count of the total number of members/items/nodes inserted
        into this quadtree and all of its child trees.