
import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
	 Scanner sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args) {
	 Scanner sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	}
} Main public static void main(String[] args) {
	 Scanner sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	} main {
	 Scanner sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int height = 0 ; height 0 int count = 0 ; count 0 for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  } int i = 0 ; int i = 0 ; i 0 i< n i n i++ i++ i {
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  } {
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  } int h ; h h =  sc.nextInt() h sc.nextInt() sc.nextInt sc if(height<=h){
	             height = h ;
	              count++;
	          
	      } height<=h height h {
	             height = h ;
	              count++;
	          
	      } height = h height h count++ count 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 sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	}
} public class Main
{
	public static void main(String[] args) {
	 Scanner sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	}
} Main

import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
	 Scanner sc = new Scanner(System.in);
	 int n = sc.nextInt();
	 int height = 0 ;
	  int count = 0 ;
	  for(int i = 0 ; i< n ; i++){
	      int h ; 
	     h =  sc.nextInt();
	      if(height<=h){
	             height = h ;
	              count++;
	          
	      }
	      
	      
	  }
	 System.out.println(count);
	 
	 
	 
	 
	 
	//	System.out.println("Hello World");
	}
}
