docs: static int count(final String s, final char c) {
  
          int pos   = 0;
          int count = 0;
  
          if (s != null) {
              while ((pos = s.indexOf(c, pos)) > -1) {
                  count++;
                  pos++;
              }
          }
  
          return count;
      }