code: @SuppressWarnings("deprecation")
    public Counters getCounters() {
      synchronized (lockObject) {
        Counters result = new Counters();
        result.incrAllCounters(getJobCounters());
  
        incrementTaskCountersUnprotected(result, maps);
        return incrementTaskCountersUnprotected(result, reduces);
      }
    }
docs: Returns the total job counters, by adding together the job,
  the map and the reduce counters.