#include "bits/stdc++.h" using namespace std; typedef long long int ll; typedef pair pi; typedef pair, ll > pii; vector vec; vector > vec2; ll MOD = 1000000007; ll INF = 1145141919454519; int main(){ string S, T; cin >> S >> T; ll ans = 0; string tS; for(ll i = 0; i <= S.length()-T.length();){ bool f = true; for(ll j = 0; j < T.length(); j++){ if(S[i+j] != T[j]){ f = false; break; } tS += S[i+j]; } if(f == true){ ans++; i += T.length(); }else{ i++; } } cout << ans << endl; }