const main = (input: string) => {
  const lines = input.split("\n");
  const H = lines[1].split(" ").map(str => parseInt(str));
  let answer = 0;

  H.forEach((h, i) => {
    if (i === 0 || (H[i - 1] <= h && H[0] <= h)) {
      answer += 1;
    }
  });

  console.log(answer);
};

main(require("fs").readFileSync("/dev/stdin", "utf8"));