A didactic words counter