from sys import stdin
n = int(stdin.readline().rstrip())
h = [int(x) for x in stdin.readline().rstrip().split()]
ans = 1
if n > 1:
    ans += 1 if h[0] <= h[1] else 0
for i in range(n - 2):
    ans += 1 if h[i + 1] <= h[i + 2] else 0
print("{}".format(ans))