#include <bits/stdc++.h>
using namespace std;
long long int hashin[100005];
int main() {
  string s1, s2, s3;
  long long int coun = 0;
  cin >> s1 >> s2;
  for (int i = 0; i < s1.size(); i++) {
    s3 = s1.substr(i, s2.size());
    if (s3 == s2) {
      int f = 0;
      for (int j = i; j < i + s2.size(); j++) {
        if (hashin[j] != 0) f = 1;
      }
      if (f == 0) {
        coun++;
        for (int j = i; j < i + s2.size(); j++) {
          hashin[j] = coun;
        }
      }
    }
  }
  cout << coun;
  return 0;
}
