Update NodeCounter.java