• Only returning 1?

Question related to mission Monkey Typing

 

Not sure why, but my count is only come back as 1:

def count_words(text: str, words: set) -> int: list = text.lower().split() count = 0 for a in words: if a in list: count += 1 return count

8