System.out.println("format_long("+counter+")");
  static public String format_long(long counter) {    String value = new Long(counter).toString();    int length = value.length();    if (length <= 3)       return value;    int segments  = length/3;    int remainder = length - (segments*3);    String constructed = "";    if (remainder > 0) {      constructed += value.substring(0,remainder)+",";    }    int start = remainder;    for (int i=0; i<segments; i++) {      constructed += value.substring(start, start+3);      start += 3;      if (i<(segments-1)) {        constructed += ",";      }    }    return constructed;  }