import java.util.*;

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

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<n; i++){
			a[i] = scn.nextInt();
		}
      	int max = 0;
      	int count = 0;
      	for(int i=0; i<n; i++){
          if(a[i]>=max){
            count++;
            max=a[i];
          }
        }
      	System.out.println(count);
	}
}