from typing import Counter


def diff_counts(values : list[int]) -> dict[int, int]:
    """Count the gaps between ordered elements in a list, by size."""
    ordered = [0] + sorted(values) + [max(values) + 3]

    return Counter(j - i for i, j in zip(ordered, ordered[1:]))