counter script updated