#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t;
  cin >> s >> t;
  int i, f, c = 0;
  i = t.size();
  f = s.find(t);
  while (f != -1) {
    c++;
    f = s.find(t, f + i);
  }
  cout << c;
}
