Variant of @kdubs answer in the case that you would like to return a value from the class-qua-function:
class incrementer:
state = 0
def __new__(_class, increment = 1):
_class.state += increment
return _class.state
# Usage example:
one = incrementer()
two = incrementer()
twelve = incrementer(10)