View counting script