def __len__(self):
    i = -1
    for i, _ in enumerate(self):
      pass

    return i + 1
Return the total number of path components.
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/paths.py/PathSpec.__len__