Create ResourceCounter.java