import java.util.*;
class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int max = 0;
    int c = 0;
    for (int i = 0; i < N; i++) {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    }
    System.out.println(N - c);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int max = 0;
    int c = 0;
    for (int i = 0; i < N; i++) {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    }
    System.out.println(N - c);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int max = 0;
    int c = 0;
    for (int i = 0; i < N; i++) {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    }
    System.out.println(N - c);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int max = 0;
    int c = 0;
    for (int i = 0; i < N; i++) {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    }
    System.out.println(N - c);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int max = 0; max 0 int c = 0; c 0 for (int i = 0; i < N; i++) {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    } {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (n >= max) {
        max = n;
      } else {
        c++;
      } n >= max n max {
        max = n;
      } max = n max n {
        c++;
      } c++ c System.out.println(N - c) System.out.println System.out System System.out N - c N c String[] args args
import java.util.*;
class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int max = 0;
    int c = 0;
    for (int i = 0; i < N; i++) {
      int n = sc.nextInt();
      if (n >= max) {
        max = n;
      } else {
        c++;
      }
    }
    System.out.println(N - c);
  }
}