
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	} main {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	} Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn int []arr=new int[n]; arr new int[n] n for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			arr[i]=scn.nextInt();
		} {
			arr[i]=scn.nextInt();
		} arr[i]=scn.nextInt() arr[i] arr i scn.nextInt() scn.nextInt scn int cnt=1; cnt 1 int max=arr[0]; max arr[0] arr 0 for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		} int i=1; int i=1; i 1 i<n i n i++ i++ i {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		} {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		} if(arr[i]>=max)
				cnt++; arr[i]>=max arr[i] arr i max cnt++ cnt if(max<arr[i]) {
				max=arr[i];
			} max<arr[i] max arr[i] arr i {
				max=arr[i];
			} max=arr[i] max arr[i] arr i System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int []arr=new int[n];
		for(int i=0;i<n;i++) {
			arr[i]=scn.nextInt();
		}
		int cnt=1;
		int max=arr[0];
		for(int i=1;i<n;i++) {
			if(arr[i]>=max)
				cnt++;
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		System.out.println(cnt);
	}

}
