import java.util.*;

public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  }
} Main static int[] ans; ans static Map<Integer, Integer> map; map public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int ans = 0; ans 0 int now = 0; now 0 for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    } {
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    } int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      } i == 0 i 0 {
        now = n;
        ans++;
      } now = n now n ans++ ans {
        if(n >= now){
          now = n;
          ans++;
        }
      } if(n >= now){
          now = n;
          ans++;
        } n >= now n now {
          now = n;
          ans++;
        } now = n now n ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[]args args public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  }
} public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.*;

public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int ans = 0;
    int now = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      if(i == 0){
        now = n;
        ans++;
      }else{
        if(n >= now){
          now = n;
          ans++;
        }
      }
    }
    System.out.println(ans);
  }
}