#include<bits/stdc++.h> using namespace std; int main(){ string a,b; int c=0; cin>>a>>b; int h=b.find(a); while(h!=-1){ c++; h=b.find(a,h+1); } cout<<c; return 0; } /************************************************************** Problem: 1477 User: panyuchen Language: C++ Result: Accepted Time:7 ms Memory:2076 kb ****************************************************************/