Added methods to get counters from JSON files