Setter for **self.__count** attribute.

        :param value: Attribute value.
        :type value: int
192180
def count(self, value):
        

        if value is not None:
            assert type(value) is int, "'{0}' attribute: '{1}' type is not 'int'!".format(
                "count", value)
            assert value > 0, "'{0}' attribute: '{1}' need to be exactly positive!".format("count", value)
        self.__count = value
146809
def set_condition(self, value):
        
        if value is None or not isinstance(value, str):
            raise TypeError("Condition is required and must be set to a String")
        else:
            self.__condition = value
1353570
def value(self, value):
        
        args = (self.__ptr, int(value))
        _ec.metric_set(args)
1371043
def _set_int(self, commands, name):
        
        if name in commands:
            try:
                value = int(commands[name])
                setattr(self, name, value)
            except ValueError:
                pass
200141
def set_id(self, value):
        
        if value is None:
            self.__id = value
        if not isinstance(value, str):
            raise TypeError("ID must be set to a String")
        else:
            self.__id = value
23566
def rules(self, value):
        

        if value is not None:
            assert type(value) in (tuple, list), "'{0}' attribute: '{1}' type is not 'tuple' or 'list'!".format(
                "rules", value)
        self.__rules = value
288805
def set_value(self, pymux, value):
        
        try:
            value = int(value)
            if value < 0:
                raise ValueError
        except ValueError:
            raise SetOptionError('Expecting an integer.')
        else:
            setattr(pymux, self.attribute_name, value)
1219069
def count(self, value):
        
        cnt = 0
        for x in self:
            if x == value:
                cnt += 1
        return cnt
1331447
def set_value(self, value):
        
        check_call(_LIB.MXProfileSetCounter(self.handle, int(value)))
1037694
def wait_time(self, value):
        

        if value is not None:
            assert type(value) in (int, float), "'{0}' attribute: '{1}' type is not 'int' or 'float'!".format(
                "wait_time", value)
            assert value >= 0, "'{0}' attribute: '{1}' need to be positive!".format("wait_time", value)
        self.__wait_time = value
794297
def flags(self, value):
        

        if value is not None:
            assert type(value) is int, "'{0}' attribute: '{1}' type is not 'int'!".format("flags", value)
        self.__flags = value
1087039
def total_count(self, total_count):
        
        if total_count is None:
            raise ValueError("Invalid value for `total_count`, must not be `None`")
        if total_count is not None and total_count < 0:
            raise ValueError("Invalid value for `total_count`, must be a value greater than or equal to `0`")

        self._total_count = total_count
1061135
def report(self, value):
        

        if value is not None:
            assert type(value) is bool, "'{0}' attribute: '{1}' type is not 'bool'!".format("report", value)
        self.__report = value
77512
def checked(self, value):
        

        if value is not None:
            assert type(value) is bool, "'{0}' attribute: '{1}' type is not 'bool'!".format("checked", value)
        self.set_checked(value)
1168120
def setColumnCount( self, count ):
        
        super(XColorTreeWidget, self).setColumnCount(count)
        
        header = self.header()
        header.setResizeMode(0, header.Stretch)
        for i in range(1, count):
            header.setResizeMode(i, header.Fixed)
433500
def set(self, num):
        
        self._value = str(round(float(num), self.nplaces))
        self._variable.set(self._value)
340446
def countBy(self, val):
        

        def by(result, key, value):
            if key not in result:
                result[key] = 0
            result[key] += 1

        res = self._group(self.obj, val, by)

        return self._wrap(res)