Update word counter example.