Added extra counter functionality in OutputHandler.java