import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();

    int[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int max = 0;
    int hotels = 0;
    for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    }
    System.out.println(hotels);
  }
} 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[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int max = 0;
    int hotels = 0;
    for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    }
    System.out.println(hotels);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();

    int[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int max = 0;
    int hotels = 0;
    for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    }
    System.out.println(hotels);
  } main {
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();

    int[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int max = 0;
    int hotels = 0;
    for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    }
    System.out.println(hotels);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] num; num num = new int[N] num new int[N] N for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
      num[i] = sc.nextInt();
    } {
      num[i] = sc.nextInt();
    } num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc int max = 0; max 0 int hotels = 0; hotels 0 for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    } int i=0 ; int i=0 ; i 0 i < N i N i++ i++ i {
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    } {
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    } if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      } max<=num[i] max num[i] num i {
        hotels ++ ;
        max = num[i];
      } hotels ++ hotels max = num[i] max num[i] num i System.out.println(hotels) System.out.println System.out System System.out hotels String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();

    int[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int max = 0;
    int hotels = 0;
    for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    }
    System.out.println(hotels);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();

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

    int N = sc.nextInt();

    int[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int max = 0;
    int hotels = 0;
    for ( int i=0 ; i < N ; i++ ){
      if(max<=num[i]){
        hotels ++ ;
        max = num[i];
      }
    }
    System.out.println(hotels);
  }
}