nom = int(input())
heights_str = input()
i = 0
r = 1


heights = heights_str.split()


list(map(lambda x: int(x), heights))


max = heights[i]

if nom >= 2:
  while i+1 != nom:
    if heights[i] <= heights[i+1]:
      r += 1
      i+=1
      max = heights[i]
      
    else:
      i+=1
    
    if i == nom: break

print(r)