def METHOD_NAME():
    total_count = 0
    for metric in counter.collect():
        for sample in metric.samples:
            if sample.name.endswith("_total"):
                total_count += sample.value
    return total_count