# -*- coding: utf-8 -*-

def main(N, H):
    count = 1
    for i in range(1, N):
        if(H[i]>=H[i-1]):
            count += 1
            
    print(count)

if __name__ == '__main__':
    N = int(input())
    H = [int(h) for h in input().split()]
    
    main(N, H)