from sys import stdin

ocean_view_num = 0
flag = 0

num = int(input())
height = list(map(int,input().split()))

for i in range(num):
    if i is not 0:
        flag = 1
        for j in range(1,i):
            if height[j - 1] > height[j]:
                flag = 0
                break 
        if flag is 1 : ocean_view_num += 1

print(ocean_view_num)