const fs = require("fs");
const input = fs.readFileSync(process.stdin.fd, "utf8").split("\n")[0];

const innes = input.split(" ").map(n => parseInt(n));

const num = innes.filter((inn, i) => {
  let others = innes.slice(0, i+1);
  let mins = others.filter(other => other <= inn).length
  return mins == others.length;
}).length

console.log(num);
