use hash table to count each word's occurrences, makefile added