N = int(input())
H = list(map(int,input().split()))
maximum = H[0]
ans = 1
for i in range(N-1):
  if H[i+1] > H[i]:
    if H[i+1] >=maximum:
      ans += 1
  if maximum < H[i+1]:
    maximum = H[i+1]
print(ans)