Lab14 Added Total Word Count

Added total word count function to problem 1.