Count the number of occurences of each word's hash

Input taken from STDIN for now, can use a command-line argument to read a file (or multiple files) later.

The word occurrence statistics will be needed to decide which words are frequent enough to use and which to discard. The hashing function is currently a simple Shift-Add-Xor, same as in the original SLCT.