class CAOZUO:
def zifuchuan(self,s1,s2):
c=0
c=s1.count(s2)
return c
if __name__=='__main__':
s1=input('shuruyuanshi:')
s2=input('shuruchazhao:')
s=CAOZUO
c=s().zifuchuan(s1,s2)
print(c)
class CAOZUO:
def zifuchuan(self,s1,s2):
c=0
c=s1.count(s2)
return c
if __name__=='__main__':
s1=input('shuruyuanshi:')
s2=input('shuruchazhao:')
s=CAOZUO
c=s().zifuchuan(s1,s2)
print(c)