#include #include #include using namespace std; int count_string(string s, string target) { int count = 0; int pos = 0; while ((pos = s.find(target, pos)) != string::npos) { count++; pos += target.length(); } return count; } int main() { string s, t; cin >> s; cin >> t; int count = count_string(s, t); cout << count << endl; return 0; }