import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	}
} Main public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	} main {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a=new int[n]; a new int[n] n for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        a[i]=scan.nextInt();
      } {
        a[i]=scan.nextInt();
      } a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan int max=0; max 0 int count = 0; count 0 for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      } {
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      } if(a[i]>=max){
          max=a[i];
          count=count+1;
        } a[i]>=max a[i] a i max {
          max=a[i];
          count=count+1;
        } max=a[i] max a[i] a i count=count+1 count count+1 count 1 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	}
} public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
      	int[] a=new int[n];
      
      for(int i=0;i<n;i++){
        a[i]=scan.nextInt();
      }
      
      int max=0;
      int count = 0;
      
      for(int i=0;i<n;i++){
        if(a[i]>=max){
          max=a[i];
          count=count+1;
        }
      }

        		System.out.println(count);
        
 
 
	}
}