class Function:

    def __init__(self, f):
        self.f = f
        self.counter = 0

    def __call__(self, a):
        self.counter += 1
        return self.f(a)

    def reset(self):
        self.counter = 0

ab4646569c8aedf79a0764e4c4c35266fba0f4fa
class Function:
    <mask token>
    <mask token>
    <mask token>

class Function:
    <mask token>
    <mask token>

    def reset(self):
        self.counter = 0

class Function:
    <mask token>

    def __call__(self, a):
        self.counter += 1
        return self.f(a)

    def reset(self):
        self.counter = 0

class Function:

    def __init__(self, f):
        self.f = f
        self.counter = 0

    def __call__(self, a):
        self.counter += 1
        return self.f(a)

    def reset(self):
        self.counter = 0
