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