Create counter.java