def METHOD_NAME(cls, attr: Attr, counters: Dict):
    started = False
    choice = attr.restrictions.choice
    for path in attr.restrictions.path:
        name, index, mi, ma = path
        if not started and name != CHOICE and index != choice:
            continue
        started = True
        if path not in counters:
            counters[path] = {"min": [], "max": []}
        counters = counters[path]
        if mi <= 1:
            attr.restrictions.min_occurs = 0
    counters["min"].append(attr.restrictions.min_occurs)
    counters["max"].append(attr.restrictions.max_occurs)