local N=tonumber(io.read())
local H={}
for s in io.read():gmatch("(%S+)%s*")do
  H[#H+1]=tonumber(s)
end
local max=0
local cnt=0

for i=1,N do
  if(max<=H[i])then
    cnt=cnt+1
    max=H[i]
  end
end
print(cnt)