code: public static long countSubstr(final String value, final String subStr) {
          return countSubstr(value, subStr, true, false);
      }
docs: Count the number of times substr appears in value
  
  @param value  input
  @param subStr to search
  @return count of times substring exists