import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  }
} Main public static void main(String[] args) {
    resolve(System.in, System.out);
  } main {
    resolve(System.in, System.out);
  } resolve(System.in, System.out) resolve System.in System System.in System.out System System.out String[] args args static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  } resolve {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  } Scanner sc = new Scanner(is); sc new Scanner(is) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int answer = 0; answer 0 int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    } {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    } int h = Integer.parseInt(sc.next()); h Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (h >= max) {
        answer++;
        max = h;
      } h >= max h max {
        answer++;
        max = h;
      } answer++ answer max = h max h pw.println(answer) pw.println pw answer InputStream is is PrintStream pw pw public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  }
} public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  }
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int answer = 0;
    int max = Integer.MIN_VALUE;
    for (int i = 0; i < n; i++) {
      int h = Integer.parseInt(sc.next());
      if (h >= max) {
        answer++;
        max = h;
      }
    }
    pw.println(answer);
  }
}
