code: public void appendCountValue(int count, int integralDigits, 
                                 int decimalDigits, StringBuffer sb) {
      int ival = count / 1000;
      if (decimalDigits == 0) {
        appendInteger(ival, integralDigits, 10, sb);
        return;
      }
  
      if (dr.requiresDigitSeparator && sb.length() > 0) {
        sb.append(' ');
      }
      appendDigits(ival, integralDigits, 10, sb);
      int dval = count % 1000;
      if (decimalDigits == 1) {
        dval /= 100;
      } else if (decimalDigits == 2) {
        dval /= 10;
      }
      sb.append(dr.decimalSep);
      appendDigits(dval, decimalDigits, decimalDigits, sb);
      if (dr.requiresDigitSeparator) {
        sb.append(' ');
      }
    }
docs: Append a count value to the builder.
  
  @param count the count
  @param integralDigits the number of integer digits to display
  @param decimalDigits the number of decimal digits to display, <= 3
  @param sb the string builder to which to append the text