def nbAttributes(self):
        """return number of user attributes the current tag has"""
        nAttr = len(list(self.tag.keys())) - 1
        if self.hasSubtag():
            nAttr -= 1
        return nAttr
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tools/xmltools.py/XMLstruct.nbAttributes/original