If curr_element is maximum or current element is equal , update maximum and increment count
if ( arr [ i ] > curr_max or arr [ i ] == curr_max ) : NEW_LINE INDENT count += 1 NEW_LINE curr_max = arr [ i ] NEW_LINE DEDENT return count NEW_LINE