#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, sz1, sz2, count, resp = 0;
  string s1, s2;
  cin >> s1 >> s2;
  sz1 = s1.size();
  sz2 = s2.size();
  for (i = 0; i <= sz1 - sz2; i++) {
    count = 0;
    for (j = 0; j < sz2; j++) {
      if (s1[i + j] == s2[j]) {
        count++;
      }
    }
    if (count == sz2) {
      s1[i + j - 1] = '#';
      resp++;
    }
  }
  cout << resp << endl;
  return 0;
}
