def _freqs(trace, freq=1):
    """Frequency of each label a trace.

    Parameters
    ----------
    trace: tuple of names

    freq: int
        Frequency of the given trace. A trace ("a", "b", "a", "c") w/ trace
        frequency of 3 would return the following frequency count:

        * a: 6
        * b: 3
        * c: 3

    Returns
    -------
    dict
        Frequency count of labels in trace.
    """
    freqs = {}
    for a in trace:
        if a not in freqs:
            freqs[a] = 0
        freqs[a] += 1 * freq
    return freqs
