def Nbr(phrase,car): l=len(phrase) n=0 for k in range(0,l): if phrase[k]==car: n=n+1 return n