Finding the Count of Numbers
for i in range ( len ( SumDigits ) ) : NEW_LINE INDENT if ( sum > M ) : NEW_LINE INDENT break NEW_LINE DEDENT sum += SumDigits [ i ] NEW_LINE if ( sum <= M ) : NEW_LINE INDENT count += 1 NEW_LINE DEDENT DEDENT return count NEW_LINE