6 input counter with IO