#include <iostream>
using namespace std;
int main() {
string t,p;
while(cin>>t>>p){
int count=0;
for(int i=0;i<t.size();i++){
for(int j=0;j<p.size();j++){
if(t[i+j] != p[j]) break;
else { if(j == p.size()-1) count++; }
}
}
cout<<count<<endl;
}
}
// 64 位输出请用 printf("%lld")


京公网安备 11010502036488号