n = int(input())
listNum = [int(x) for x in input().split()]
answer = []
answer.append(listNum[0])
for i in range(1,n):
    if((listNum[0] <= listNum[i]) and (listNum[i-1] <= listNum[i])):
        answer.append(i)
print(len(answer))