import java.util.Scanner;

public class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	}
	
	private static int countOceanView(int[] arr) {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	}
} 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[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	}
	
	private static int countOceanView(int[] arr) {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	} main {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] arr = new int[N]; arr new int[N] N for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i arr[i] = sc.nextInt(); arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc System.out.println(countOceanView(arr)) System.out.println System.out System System.out countOceanView(arr) countOceanView arr String[] args args private static int countOceanView(int[] arr) {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	} countOceanView {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	} int ans = 1; ans 1 for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		} int i = 1; int i = 1; i 1 i < arr.length i arr.length arr arr.length i++ i++ i {
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		} {
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		} if(arr[i] >= arr[i - 1]) ans++; arr[i] >= arr[i - 1] arr[i] arr i arr[i - 1] arr i - 1 i 1 ans++ ans arr[i] = Math.max(arr[i], arr[i - 1]) arr[i] arr i Math.max(arr[i], arr[i - 1]) Math.max Math arr[i] arr i arr[i - 1] arr i - 1 i 1 return ans; ans int[] arr arr public class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	}
	
	private static int countOceanView(int[] arr) {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	}
} public class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	}
	
	private static int countOceanView(int[] arr) {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	}
} 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[] arr = new int[N];
		for(int i = 0; i < arr.length; i++) arr[i] = sc.nextInt();
		
		System.out.println(countOceanView(arr));
	}
	
	private static int countOceanView(int[] arr) {
		
		int ans = 1;
		for(int i = 1; i < arr.length; i++){
			if(arr[i] >= arr[i - 1]) ans++;
			arr[i] = Math.max(arr[i], arr[i - 1]);
		}
		
		return ans;
	}
}