totalnum = int(input())
ryohight = int(input()).split(" ")
nd = 0
for nd in range(totalnum):
  nd += 1
  if nd == 0:
    lst[nd] = lst.append(ryohight[0])
  elif int(ryohight[nd]) >= int(lst[nd-1]):
      lst[nd] = ryohight[nd]
print(len(lst))