from typing import List
from typing import Dict


def get_distribution(labels: List[str]) -> Dict[str, int]:
    """
    Get the distribution of the labels.

    Prameters
    ---------
    labels : List[str]
        This list is non-unique.

    Returns
    -------
    distribution : Dict[str, int]
        Maps (label => count)

    Examples
    --------
    >>> dist = get_distribution(['de', 'de', 'en'])
    >>> sorted(dist.items())
    [('de', 2), ('en', 1)]
    """
    distribution: Dict[str, int] = {}
    for label in labels:
        if label not in distribution:
            distribution[label] = 1
        else:
            distribution[label] += 1
    return distribution