def BruteForce2(p,t) :
n = len(t)
m = len(t)
cnt = 0
for i in range(n-m + 1) :
match = 0
for j in range(m) :
if t[i+j] != p[j]:
break
else :
match +=1
if match == m :
cnt += 1
return cnt