Update word counter