N = int(input())
H = list(map(int, input().split()))

ans = 0

for i in range(N):
    if i == 0:
        ans = ans+1
    elif H[0] <= H[i] <= H[i] and H[i-1] <=H[i] and H[0] <= H[2] <= H[i]   and H != 0:
        ans = ans + 1

print(ans)