Update counter.ex