Added word counting algorithm as preparation for further data mining
techniques.