import java.util.*;
import java.lang.*;
class Main
{
{
String first
= "/Some object that has a loop in it object/"; int ind = 0;
int cnt = 0;
while (true) {
int pos = first.indexOf(second, ind);
if (pos < 0) break;
cnt++;
ind = pos + 1;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewogICAgICAgIFN0cmluZyBmaXJzdCA9ICIvU29tZSBvYmplY3QgdGhhdCBoYXMgYSBsb29wIGluIGl0IG9iamVjdC8iOwpTdHJpbmcgc2Vjb25kID0gIm9iamVjdCI7CgkJaW50IGluZCA9IDA7CmludCBjbnQgPSAwOwp3aGlsZSAodHJ1ZSkgewogICAgaW50IHBvcyA9IGZpcnN0LmluZGV4T2Yoc2Vjb25kLCBpbmQpOwogICAgaWYgKHBvcyA8IDApIGJyZWFrOwogICAgY250Kys7CiAgICBpbmQgPSBwb3MgKyAxOwp9ClN5c3RlbS5vdXQucHJpbnRsbihjbnQpOwoJfQp9