#include using namespace std; using ll = long long; using Graph = vector>; int main () { string S; cin >> S; string T; cin >> T; int ans = 0; for(int i = 0; i < S.size(); i++) { int x = i; int y = 0; for(int j = 0; j < T.size(); j++) { if(S[x] == T[j]) { y++; } x++; } if(y == T.size()) ans++; } cout << ans << endl; }