Just a simple program which takes in words and counts their instances