removed unnecessary defns
Adding in character and word frequency counters