from typing import Counter


def _get_mfword(words, mfs, stems):
    """Gets unique moral foundation words. Stems are treated as word.
    """

    # Moral foundation word list.
    mfl = mfs + stems
    mfw = list(set(words).intersection(set(mfl)))
    return Counter(mfw)