code: private static long countCharacter(String value, char c) {
          return value.chars().filter(s -> s == c).count();
      }
docs: Counts the number of times the char c is contained in the value.
  
  @param value the string to search
  @param c the character to count
  @return the number of times the char c is contained in the value