#include using namespace std; using ll = long long; using P = pair; #define rep(i,n) for(int i=0;i> s >> t; if (s.find(t)!=-1 && t.size()==1){ cout << "-1" << endl; return 0; } int ans = 0; int pos = s.find(t); while (pos != -1){ ans++; pos = s.find(t,pos+t.size()); } cout << ans << endl; return 0; }