#include using namespace std; #define int long long signed main(){ string s, t; cin >> s >> t; int n = s.size(); int m = t.size(); int cnt = 0; for(int i = 0;i < n;i++){ if(i+m > n) break; if(s.substr(i, m) == t){ s[i+m-1] = '.'; cnt++; } } cout << cnt << endl; return 0; }