# coding: utf-8

num = int(input())
str = input().split()
table = [int(i) for i in str]
count = 1
pointed = table[0]
for i in range(1, num):
    if table[0] <= table[i] and table[i-1] <= table[i] :
        count += 1
print(count)
