def __len__(self):
        """
        Implements a somewhat inefficient length tracking method. Returns the
        total number of orders contained within.
        """
        total = 0
        for orders in self._history.values():
            total += len(orders)
        return total
def __len__ ( self ) : total = 0 for orders in self . _history . values ( ) : total += len ( orders ) return total
Implements a somewhat inefficient length tracking method. Returns the
        total number of orders contained within.