Count the number of occurrences of ' a ' and ' b ' in s1
for i in range ( len ( s1 ) ) : NEW_LINE INDENT if ( s1 [ i ] == ' a ' ) : NEW_LINE INDENT count_a1 += 1 NEW_LINE DEDENT else : NEW_LINE INDENT count_b1 += 1 NEW_LINE DEDENT DEDENT