def _csize(counter):
    """
    Computes the size of (number of elements in) a given Counter.

    Parameters
    ----------
    counter : Counter
        The counter to get the size of.

    Returns
    -------
    int
    """
    return len(list(counter.elements()))