Now we need to write some Python code to perform the counting of the words. This will not be much of a challenge though as we've already got the logic of the algorithm under control! It's now just a task of knowing the appropriate Python syntax.