Python script that reads word input, stores word counts, and then outputs the top N words in the input (ranked, and alongside their corresponding count)