def get_number_mwus_per_word(mwu_counter, min_freq=2):
    """
    :param mwu_counter: dictionary mapping MWUs to their frequency counts
    :return: dictionary mapping words to the number of MWUs within which they occur
    """
    ret = dict()
    for mwu, freq in mwu_counter.items():

        if freq < min_freq:
            continue

        for w in mwu:
            if w not in ret:
                ret[w] = 0
            ret[w] += 1
    return ret