Reinitialize all variables and compute the number
if ( check == 4 or i == 0 ) : NEW_LINE INDENT if ( sum == 0 and check0 == 0 ) : NEW_LINE INDENT num = 1 ; NEW_LINE check0 = 1 ; NEW_LINE DEDENT else : NEW_LINE DEDENT