n = gets.split.map {|e| e.to_i }.first
hs = gets.split.map {|e| e.to_i }

def cmp(xs,ys)
  y = ys.first
  xs.each { |x|
    if x > y
      return false
    end
  }
  return true
end

count = 1
x, *ys = hs
xs = [x]
(n-1).times { |i|
  # p [i, xs, ys]
  if cmp(xs, ys)
    count += 1
  end
  xs.push(ys.shift)
}
puts count
