#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int bandera = 0;
for(int i = 0; i < s.size(); i++){
int cnt = 0;
for(int j = 0; j < t.size(); j++){
if(s[i+j] == t[j]){
cnt++;
}
}
if(cnt == t.size()){
bandera++;
}
}
cout << bandera;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKSB7CglzdHJpbmcgcywgdDsKCWNpbiA+PiBzOwoJY2luID4+IHQ7CiAKCWludCBiYW5kZXJhID0gMDsKIAoJZm9yKGludCBpID0gMDsgaSA8IHMuc2l6ZSgpOyBpKyspewoJCWludCBjbnQgPSAwOwoJCWZvcihpbnQgaiA9IDA7IGogPCB0LnNpemUoKTsgaisrKXsKCQkJaWYoc1tpK2pdID09IHRbal0pewoJCQkJY250Kys7CgkJCX0KCQl9CgkJaWYoY250ID09IHQuc2l6ZSgpKXsKCQkJYmFuZGVyYSsrOwoJCX0KCX0KIAoJY291dCA8PCBiYW5kZXJhOwogCglyZXR1cm4gMDsKIAp9