def METHOD_NAME(func):
    c = Counter()
    @wraps(func)
    def get_pv(pvname, *args, **kwargs):
        c[pvname] += 1
        return func(pvname, *args, **kwargs)
    get_pv.counter = c
    return get_pv