r_count=int(input())
m_height=list(map(int, input().rstrip().split()))
len(m_height)==r_count
a=0
for i in range(r_count):
    if (m_height[i] if len(m_height)>i) < (m_height[i-1] if len(m_height)>(i-1)):
        a=a+0
    else:
        a=a+1
print(a)
  