Help me in solving PYTH99A problem

My issue

My code

# Count how many 'o's are present in the string using a 'for' loop and 'if' condition

string = 'bolloon'

# use this variable to count occurrences of o
count_o = 0  
for char in string:
    if char=='o':
        count_o += 1
    print(count_o)

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

# Count how many 'o's are present in the string using a 'for' loop and 'if' condition

string = 'bolloon'

# use this variable to count occurrences of o
count_o = 0      
for char in string:
    if char=='o':
        count_o += 1
print(count_o)

The problem had been the print statement being in the for loop, I removed it from the loop so the results is printed only once.