As of right now, I have a function to replace the countChars function,
def countWords(lines):
wordDict = {}
for line in lines:
wordList = lines.split
words = ['red', 'green', 'black', 'pink', 'black', 'white', 'black',
'eyes','white', 'black', 'orange', 'pink', 'pink', 'red', 'red',
'white', 'orange', 'white', "black", 'pink', 'green', 'green', 'pink',
'green', 'pink','white', 'orange', "orange", 'red']
from collections import Counter
counts = Counter(words)
top_four = counts.most_common(4)
print(top_four)