# B - Great Ocean View
# https://atcoder.jp/contests/abc124/tasks/abc124_b


n = int(input())
points = list(map(int, input().split()))
# points = [1,2,3,4,5]

# if len(points) < 3:
#     first, second = points[0], points[1]
need_height = max(points[0], points[1])
ans = 1
for i in range(1, len(points)):
    pre_spot = points[i-1]
    if need_height <= points[i] and pre_spot <= points[i]:
        ans += 1

        
print(ans)