Update Counter.java

Fix: lastRate is wrong after reset()