check prev_count and curr_count on encounter of first zero after continuous - 1 s
else : NEW_LINE INDENT if ( curr_count < prev_count ) : NEW_LINE INDENT return 0 NEW_LINE DEDENT i += 1 NEW_LINE prev_count = curr_count NEW_LINE curr_count = 0 NEW_LINE DEDENT