finished word counter.