"""Lightweight runtime metrics."""

from __future__ import annotations

from collections import Counter


METRICS = Counter()


def incr(metric: str) -> None:
    METRICS[metric] += 1


def snapshot() -> dict[str, int]:
    return dict(METRICS)
