code: public static int containStatistics(String srcString, String desString) {
          int length = desString.length();
          String newString = srcString.replace(desString, "");
          return (srcString.length() - newString.length()) / length;
      }
docs: 含子串的次数
  
  @param srcString 原串
  @param desString 目标子串
  @return 次数