N=input()
list1=[int(i) for i in input().split()]
list2=[x - list1[0] for (x) in list1] 
list3=[x - list1[0] for (x) in list1] 
list2.insert(0,0)
list3.append(0)
list4= [x - y for (x, y) in zip(list2,list3)]
print(len([i for i in list4 if i > 0])+1)