def nbAttributes(self):
        nAttr = len(list(self.tag.keys())) - 1
        if self.hasSubtag():
            nAttr -= 1
        return nAttr
Retrieves service type from function.
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tools/xmltools.py/XMLstruct.nbAttributes--crossover with--dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/common/cliutils.py/get_service_type