words counter class