Update counter.java