def occurence_counter(source,target):
    palin=0
    flag = source.count(target)
    location = source.find(target)
    target2=target[::-1]
    if(target2==target):
        palin=1
    if(palin==1):
            location=location+len(target)-1
            print(len(source))
            flag=flag+source.count(target)
    return flag

str = input()
search = input()
if (len(str)>=1 and len(str)<=200):
    for i in range(len(str)):
        if(isinstance(str[i],type('string'))):
            flag=0
        else: flag=1

if(flag==0):
    print(occurence_counter(str,search))