code: protected void tally(WARCRecordType warcRecordType, long contentBytes, long totalBytes, long sizeOnDisk) {
          if (tmpStats == null) {
              tmpStats = new HashMap<String, Map<String,Long>>();
          }
  
          // add to stats for this record type
          Map<String, Long> substats = tmpStats.get(warcRecordType.toString());
          if (substats == null) {
              substats = new HashMap<String, Long>();
              tmpStats.put(warcRecordType.toString(), substats);
          }
          subtally(substats, contentBytes, totalBytes, sizeOnDisk);
          
          // add to totals
          substats = tmpStats.get(TOTALS);
          if (substats == null) {
              substats = new HashMap<String, Long>();
              tmpStats.put(TOTALS, substats);
          }
          subtally(substats, contentBytes, totalBytes, sizeOnDisk);
      }
docs: should be the same as totalBytes (right?)