import java.io.*;
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+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  }
} import java.io.*; io.* java 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+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int h[] = new int[N+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int h[] = new int[N+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  } 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+1]; h new int[N+1] N+1 N 1 for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    } int i = 1; int i = 1; i 1 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 int cnt = 0; cnt 0 for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    } int i = 1; int i = 1; i 1 i<=N i N i++ i++ i {
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    } {
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    } boolean canseeocean = true; canseeocean true for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      } int j = 1; int j = 1; j 1 j<i j i j++ j++ j {
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      } {
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      } if(h[j] > h[i]){
          canseeocean = false; 
        } h[j] > h[i] h[j] h j h[i] h i {
          canseeocean = false; 
        } canseeocean = false canseeocean false if(canseeocean){
        cnt++; 
      } canseeocean {
        cnt++; 
      } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  }
} public class Main {
  
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int h[] = new int[N+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  }
} Main
import java.io.*;
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+1];
    for(int i = 1; i<=N; i++){
      h[i] = sc.nextInt(); 
    }
    int cnt = 0;
    for(int i = 1; i<=N; i++){
      boolean canseeocean = true;
      for(int j = 1; j<i; j++){
        if(h[j] > h[i]){
          canseeocean = false; 
        }
      }
      if(canseeocean){
        cnt++; 
      }
    }
    System.out.println(cnt);
  }
}
