in spamfilter.py [0:0]
def count_words(self, words: typing.List[str]):
ham_count = 0
spam_count = 0
for word in words:
ham_count += self.ham_words.count(word)
spam_count += self.spam_words.count(word)
return ham_count, spam_count