totalnum = input()
ryohight = input().split(" ")
nt = 0
lst = list()
for nd in range(int(totalnum)):
  nd += 1
  ntminus1 = int(nt) - 1
  if ntminus1 <= 0:
    ntminus1 = 0
  if nt == 0:
    lst.append(ryohight[0])
    nt += 1
  elif int(ryohight[nd]) >= int(lst[ntminus1]):
    #lst[nt] = ryohight[nt]
    lst.append(ryohight[nt])
    nt += 1
result = int(len(lst))
