import java.util.*; 
class Main {
   public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
       int N = sc.nextInt();
       int h[] = new int [N]; 
       int con = 1;
       int a = 0;
     
     for(int i =0;i<N;i++){
      h[i] = sc.nextInt();
     }
     
      for(int i = 1;i<N;i++){
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      }
       
     
     
     System.out.print(con);


   }
} import java.util.*; util.* java class Main {
   public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
       int N = sc.nextInt();
       int h[] = new int [N]; 
       int con = 1;
       int a = 0;
     
     for(int i =0;i<N;i++){
      h[i] = sc.nextInt();
     }
     
      for(int i = 1;i<N;i++){
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      }
       
     
     
     System.out.print(con);


   }
} Main public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
       int N = sc.nextInt();
       int h[] = new int [N]; 
       int con = 1;
       int a = 0;
     
     for(int i =0;i<N;i++){
      h[i] = sc.nextInt();
     }
     
      for(int i = 1;i<N;i++){
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      }
       
     
     
     System.out.print(con);


   } main {
      
        Scanner sc = new Scanner(System.in);
       int N = sc.nextInt();
       int h[] = new int [N]; 
       int con = 1;
       int a = 0;
     
     for(int i =0;i<N;i++){
      h[i] = sc.nextInt();
     }
     
      for(int i = 1;i<N;i++){
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      }
       
     
     
     System.out.print(con);


   } 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 con = 1; con 1 int a = 0; a 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++){
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      } int i = 1; int i = 1; i 1 i<N i N i++ i++ i {
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      } {
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      } a = Math.max(h[i-1],a) a Math.max(h[i-1],a) Math.max Math h[i-1] h i-1 i 1 a if(a<=h[i]){con++;} a<=h[i] a h[i] h i {con++;} con++ con System.out.print(con) System.out.print System.out System System.out con 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 h[] = new int [N]; 
       int con = 1;
       int a = 0;
     
     for(int i =0;i<N;i++){
      h[i] = sc.nextInt();
     }
     
      for(int i = 1;i<N;i++){
        a = Math.max(h[i-1],a);
        if(a<=h[i]){con++;}
      }
       
     
     
     System.out.print(con);


   }
}
