class Foo(object):
    pass


class Bar(Foo):
    pass
print(Foo.get_counter())
print(Foo().get_counter())
print(Bar.get_counter())
print(Bar().get_counter())
print(Foo.get_counter())
print(Foo().get_counter())
I need a Python class that keep tracks of how many times it is instantiated