import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] H = new int[N]; H new int[N] N int max = 1; max 1 int cnt = 0; cnt 0 for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        } {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        } H[i] = Integer.parseInt(sc.next()) H[i] H i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (H[i] >= max) {
            cnt++;
            max = H[i];
          } H[i] >= max H[i] H i max {
            cnt++;
            max = H[i];
          } cnt++ cnt max = H[i] max H[i] H 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) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
      	int[] H = new int[N];
      	int max = 1;
      	int cnt = 0;
      
      	for (int i = 0 ; i < N ; i++) {
          H[i] = Integer.parseInt(sc.next());
          if (H[i] >= max) {
            cnt++;
            max = H[i];
          }
        }
        System.out.println(cnt);
    }
}
