A program to count the occurrences of word in an input stream.