#include using namespace std; int main() { string S, T; cin >> S >> T; if (T.size() == 1 && (int)S.find(T) != -1) return cout << -1 << "\n", 0; int ans = 0, t = T.size(); while ((int)S.find(T) > -1) S.insert(S.find(T) + t - 1, "."), ans++; cout << ans << "\n"; }