added open counter