code: public static int countCodePoint(String source) {
          if (source == null || source.length() == 0) {
              return 0;
          }
          return findCodePointOffset(source, source.length());
      }
docs: Number of codepoints in a UTF16 String
  
  @param source UTF16 string
  @return number of codepoint in string