Codechef 28:

 https://www.codechef.com/CHNT2021/problems/CDHNT1

for _ in range(int(input())):

    arr=input()

    

    sum1=0

    for i in arr :

        if i =="#":

            sum1+=1

    print(sum1)

    

    

Comments