function main()
  
  N = parse(Int,readline())
  H = map(x -> parse(Int,x), split(readline()))
  
  check = true
  count = 0
  
  for i in 1:N
    for j in 0:N-1
      
      if H[1+j] > H[i]
        check = false
      end
      
    end

    if check == true
      count += 1
    else
      check = true
    end
    
  end
  
  println(count)
  
end

main()