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 view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    System.out.println(cnt);
  }
}
    
     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 view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    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];
    int view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    System.out.println(cnt);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int H[] =new int[N];
    int view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    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]; H new int[N] N int view = 0; view 0 int cnt = 0; cnt 0 for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    } {
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    } H[i]=sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if(H[i]>=view){
        cnt++;
        view=H[i];
      } H[i]>=view H[i] H i view {
        cnt++;
        view=H[i];
      } cnt++ cnt view=H[i] view H[i] H i 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];
    int view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    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];
    int view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    System.out.println(cnt);
  }
} 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 view = 0;
    int cnt = 0;
    
    for(int i=0; i<N; i++){
      H[i]=sc.nextInt();
      if(H[i]>=view){
        cnt++;
        view=H[i];
      }
    }
    System.out.println(cnt);
  }
}
    
    