Problem: Counting words in a file

Given a file, we can ask various how many different words there are in it:

* How many words are there all together?
* How many different words are...