Add count variable