A program that uses binary trees to find total and individual word counts of a given text