added counting script