code: public static void logCount(Logger logger, Level level, int count, 
              String singularMessage, String pluralMessage, 
              Object[] singularParams, Object[] pluralParams) {
          String countStr = numberFormat.get().format(count);
          if (count > 1 || count == 0) {
              logger.log(level, pluralMessage, 
                      processLogCountParams(countStr, pluralParams));
          } else {
              logger.log(level, singularMessage, 
                      processLogCountParams(countStr, singularParams));
          }
      }
docs: Prints a count of something to a log with an appropriate singular or
  plural message.
  
  @param logger the {@link Logger} to which to print.
  @param level the logging {@link Level}.
  @param count the count to print.
  @param singularMessage the message string to print if the count is
  <code>1</code>. In {@link java.text.MessageFormat} style. The
  <code>{0}</code> parameter will be replaced by the count.
  @param pluralMessage the message string to print if the count is
  <code>0</code> or greater than <code>1</code>.  in
  {@link java.text.MessageFormat} style. the <code>{0}</code> parameter
  will be replaced by the count.
  @param singularParams additional message parameters for the singular
  message, starting with <code>{1}</code>.
  @param pluralParams additional message parameters for the plural
  message, starting with <code>{1}</code>.