num_tokens_file function

Compute total number of tokens in a text file