print('Number of different words:', different_words(hist))
And the results:
Total number of words: 161080
Number of different words: 7214
print('Number of different words:', different_words(hist))
And the results:
Total number of words: 161080
Number of different words: 7214