added textFile word count function