counting script