import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	}
} Main public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	} main {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b[]=new int[a]; b new int[a] a for(int i=0;i<a;i++)
			 b[i]=sc.nextInt(); int i=0; int i=0; i 0 i<a i a i++ i++ i b[i]=sc.nextInt(); b[i]=sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc int c=1; c 1 int s=b[0]; s b[0] b 0 for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		} int i=1; int i=1; i 1 i<a i a i++ i++ i {
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		} {
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		} if(s<=b[i]){
			  s=b[i];
			  c++;
		  } s<=b[i] s b[i] b i {
			  s=b[i];
			  c++;
		  } s=b[i] s b[i] b i c++ c System.out.println(c) System.out.println System.out System System.out c String arg[] arg public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	}
} public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		 int b[]=new int[a];
		 for(int i=0;i<a;i++)
			 b[i]=sc.nextInt();
		int c=1;
		int s=b[0];
		for(int i=1;i<a;i++){
			if(s<=b[i]){
			  s=b[i];
			  c++;
		  }
		  		}
		System.out.println(c);
	}
}