#include <bits/stdc++.h>
using namespace std;
long long GCD(long long x, long long y) { return !y ? x : GCD(y, x % y); }
long long LCM(long long x, long long y) { return x * y / GCD(x, y); }
char* a(char* arr) {
  char* result = "";
  result += 's';
  return result;
}
int main() {
  ios::sync_with_stdio(false);
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr), cout.tie(nullptr);
  string a, b;
  long long counter = 0;
  cin >> a >> b;
  if (b.size() > a.size()) {
    cout << "0" << endl;
    return 0;
  }
  for (int i = 0; i <= a.size() - b.size(); i++)
    for (int j = 0; j < b.size(); j++)
      if (a[i + j] != b[j])
        break;
      else if (j == b.size() - 1)
        a[i + j] = '#', counter++;
  cout << counter << endl;
  return 0;
}
