import java.util.*;

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

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] H = new int[N];
    int n =0;
    for (int i =0; i<N; i++) {
      H[i] = sc.nextInt();
    }
    for (int i =1; i<N; i++) {
      for (int j =0; j<i; j++) {
        if(H[i] < H[j]) {
          n++;
          break;
        }
      }
    }
    System.out.println(N-n);
  }
}