Added counters for token types.

Exactly what it says. Output file prints all previous information plus
a line with how many tokens of each type were found in the input file.
The order in which these are printed will probably change soon.