code: public static String getFormattedCount(Long count) {
          final String unit;
          final Double dbl;
          final DecimalFormat format = new DecimalFormat("#.#");
          if (count < 1000) {
              return format.format(count);
          } else if (count < 1000000) {
              unit = "k";
              dbl = count / 1000.0;
          } else if (count < 1000000000) {
              unit = "m";
              dbl = count / 1000000.0;
          } else {
              unit = "b";
              dbl = count / 1000000000.0;
          }
          return format.format(dbl) + unit;
      }
docs: Used to format a given number into a short representation.
  <p/>
  Examples:
  Given 9100, will return "9.1k".
  Given 8100000, will return "8.1m"
  Given 10, will return 10"
  
  @param count Value to convert.
  @return Formatted value (see examples)