#include <iostream>
#include <cstring>
using namespace std;
int main() {
char str[100] = { 0 };
char substr[100] = { 0 };
cin.getline(str, sizeof(str));
cin.getline(substr, sizeof(substr));
int count = 0;
// write your code here......
string str1(str);
string substr1(substr);
size_t pos = str1.find(substr1, 0);
while (pos != string::npos) {
count++;
pos = str1.find(substr1, pos + 1);
}
cout << count << endl;
return 0;
}



京公网安备 11010502036488号