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


n = int(input())
points = list(map(int, input().split()))


ans = 1

if n == 1:
    pass

elif n == 2:
    if points[1] >= points[0]:
        ans += 1
        
# elif n >= 3:
#     need_height = max(points[0], points[1])
#     for i in range(1, n):
#         current = points[i]
#         
#         if need_height <= current and points[i-1] <= current:
#             ans += 1


print(ans)