len(set(str_.split()).intersection(list(dict_1.values())))
len(set(str_.split()) & set(dict_1.values()))
words = str_.lower().split()
Count the number of words in a string by using a dictionary using a csv file in Python