#include using namespace std; using lint = long long; const lint inf = 1LL << 60; const lint mod = 1000000007; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string s, t; cin >> s >> t; int ns = s.size(), nt = t.size(); int ret = 0; for (int i = 0; i < ns; ++i) { if (s.substr(i, nt) == t) { ret++; i += nt - 1; } } cout << ret << "\n"; return 0; }