check if the word is in the special word, if so, add to dictionary along with count
def get_word_counts(word_list): word_count = {} for word in word_list: if word in word_count: word_count[word] += 1 else: word_count[word] = 1 return word_count get_word_counts(['a', 'b', 'a'])