#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string a, b;
  cin >> a >> b;
  int ans = 0;
  for (int i = (int)b.size() - 1; i < a.size(); i++) {
    string cur;
    for (int j = 0; j < b.size(); j++) {
      cur.push_back(a[i - j]);
    }
    reverse(cur.begin(), cur.end());
    if (cur == b) {
      ans++;
      a[i] = '#';
    }
  }
  cout << ans << endl;
}
