def counts()

in doc/FormattingDecisionComments/types.py [0:0]


def counts(path, patterns):
    return {
        key: count(path, patterns[key])
        for key in ["1", "2", "3"]
    }