code: public static int occurrencesOfCodePoint(String string, final int value)
      {
          return StringIterate.countCodePoint(string, new CodePointPredicate()
          {
              public boolean accept(int codePoint)
              {
                  return value == codePoint;
              }
          });
      }
docs: Count the number of occurrences of the specified int code point.
  
  @since 7.0