def addcounter(self, kind, inst, counter):
        """Add a counter for 'inst' of 'type' obj (using PDH terminology).

        Arguments:

        - kind
            type of object for the counter to work on (Process, Network Interface,
            etc.)
        - inst
            instance of 'type' (IEXPLORE, etc.; set to None if not applicable)
        - counter
            counter name

        """
        interface_name = interfacename(kind, inst)
        self.rawaddcounter(interface_name, counter)
        kind_dict = self._counters.setdefault(kind, {})
        inst_dict = kind_dict.setdefault(inst, {})
Add a counter for 'inst' of 'type' obj (using PDH terminology).

        Arguments:

        - kind
            type of object for the counter to work on (Process, Network Interface,
            etc.)
        - inst
            instance of 'type' (IEXPLORE, etc.; set to None if not applicable)
        - counter
            counter name

        
recipes/Python/303338_Helper_subclass/recipe-303338.py