# -*- coding: utf-8 -*-
a = int(input())
Hbox = map(int, input().split())
c = Hbox[0]
number = 0
for i in range(1, a):
    if Hbox[i] > c:
        number +=1
        c = Hbox[i]
    else:
        pass
print(number)