import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
      	int n = sc.nextInt();
        int max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	}
} 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 max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
      	int n = sc.nextInt();
        int max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	} main {
		Scanner sc = new Scanner(System.in);
		
      	int n = sc.nextInt();
        int max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int max = sc.nextInt(); max sc.nextInt() sc.nextInt sc int count = 1; count 1 int istack; istack for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        } {
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        } istack = sc.nextInt() istack sc.nextInt() sc.nextInt sc if(istack >= max){
            count++;
            max = istack;
          } istack >= max istack max {
            count++;
            max = istack;
          } count++ count max = istack max istack System.out.print(count) System.out.print System.out System System.out count String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
      	int n = sc.nextInt();
        int max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
      	int n = sc.nextInt();
        int max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
      	int n = sc.nextInt();
        int max = sc.nextInt();
      	int count = 1;
      	int istack;
      
      	for(int i = 1;i < n;i++){
          istack = sc.nextInt();
          if(istack >= max){
            count++;
            max = istack;
          }
        }
          
      	System.out.print(count);
      
	}
}