def count(s,c) :
     
    res = 0 
    for i in range(len(s)) : 
        if (s[i] == c): 
            res = res + 1
    return res 
def count(s, c):
    res = 0
    i = 0
    while i < len(s):
       
        if s[i] == c:
            res = res + 1
        i += 1
    return res