Add count state script