code: public void printCount(String kind, int count) {
          if (count != 0) {
              String key;
              if (count == 1)
                  key = "count." + kind;
              else
                  key = "count." + kind + ".plural";
              log.printLines(WriterKind.ERROR, key, String.valueOf(count));
              log.flush(Log.WriterKind.ERROR);
          }
      }
docs: Print numbers of errors and warnings.