def __len__(self):
        return len(self.elements)
As per Sized.
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/ordered_set.py/OrderedSet.__len__