n = int(input())
count = 0
data = [int(s) for s in input().split()]
for i in range(0,n-1):
    max = data[0]
    if data[i] <= data[i+1] and data[i+1] >= max:
        count += 1


print(count+1)

    
    