import java.util.Scanner;
 
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 ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	}
} import java.util.Scanner; Scanner 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 ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	}
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] H = new int[N];
    int ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	} main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] H = new int[N];
    int ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	} 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 ans = 0; ans 0 int count = 0; count 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 int max = H[0]; max H[0] H 0 for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    } {
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    } for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      } int ii = 1; int ii = 1; ii 1 ii < i ii i ii++ ii++ ii {
        
        max = Math.max(max,H[ii]);
      } {
        
        max = Math.max(max,H[ii]);
      } max = Math.max(max,H[ii]) max Math.max(max,H[ii]) Math.max Math max H[ii] H ii if(max <= H[i]){
        count++;
      } max <= H[i] max H[i] H i {
        count++;
      } count++ count System.out.println(count+1) System.out.println System.out System System.out count+1 count 1 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 ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	}
} 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 ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	}
} Main
import java.util.Scanner;
 
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 ans = 0;
    int count = 0;
    

    
    for(int i = 0;i < N;i++){
      H[i] = sc.nextInt();
    }
    
    int max = H[0];

    for(int i = 1;i < N;i++){
      for(int ii = 1;ii < i;ii++){
        
        max = Math.max(max,H[ii]);
      }
      if(max <= H[i]){
        count++;
      }
    }
    System.out.println(count+1);
	}
}