Adding wordfrequency counter class and its test