word counting script