#include #define int long long using namespace std; using Graph = vector>; signed main(){ string S, T; cin >> S >> T; int ans = 0; int N = (int)T.size(); int cnt = 0; while( cnt < S.size() ){ if( S.substr(cnt, N) == T ){ if( N==1 ){ cout << -1 << endl; return 0; }else{ ans++; cnt += N-1; } } cnt++; } cout << ans << endl; }