docs: public static int countChar(String s, char c) {
  
          int counter = 0;
          for (int i = 0; i < s.length(); i++) {
              if (s.charAt(i) == c) {
                  counter++;
              }
          }
          return counter;
      }