update word counting html