Added number of words to output. Uses the word_list i.e. filtered list of words to calculate.