import java.util.*;

class Main {
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  Integer array[] = new Integer[n] ;
  for(int i=0; i<n; i++){
    array[i] = sc.nextInt();
  }
  int count =0;
  int max = array[0];
  for(Integer elem:array){
    if (elem >= max){
      count += 1;
      max = elem;
    }
  }
  System.out.println(count);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  Integer array[] = new Integer[n] ;
  for(int i=0; i<n; i++){
    array[i] = sc.nextInt();
  }
  int count =0;
  int max = array[0];
  for(Integer elem:array){
    if (elem >= max){
      count += 1;
      max = elem;
    }
  }
  System.out.println(count);
  }
} Main public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  Integer array[] = new Integer[n] ;
  for(int i=0; i<n; i++){
    array[i] = sc.nextInt();
  }
  int count =0;
  int max = array[0];
  for(Integer elem:array){
    if (elem >= max){
      count += 1;
      max = elem;
    }
  }
  System.out.println(count);
  } main {
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  Integer array[] = new Integer[n] ;
  for(int i=0; i<n; i++){
    array[i] = sc.nextInt();
  }
  int count =0;
  int max = array[0];
  for(Integer elem:array){
    if (elem >= max){
      count += 1;
      max = elem;
    }
  }
  System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Integer array[] = new Integer[n] ; array new Integer[n] n for(int i=0; i<n; i++){
    array[i] = sc.nextInt();
  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    array[i] = sc.nextInt();
  } {
    array[i] = sc.nextInt();
  } array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc int count =0; count 0 int max = array[0]; max array[0] array 0 for(Integer elem:array){
    if (elem >= max){
      count += 1;
      max = elem;
    }
  } Integer elem array {
    if (elem >= max){
      count += 1;
      max = elem;
    }
  } {
    if (elem >= max){
      count += 1;
      max = elem;
    }
  } if (elem >= max){
      count += 1;
      max = elem;
    } elem >= max elem max {
      count += 1;
      max = elem;
    } count += 1 count 1 max = elem max elem System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;

class Main {
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  Integer array[] = new Integer[n] ;
  for(int i=0; i<n; i++){
    array[i] = sc.nextInt();
  }
  int count =0;
  int max = array[0];
  for(Integer elem:array){
    if (elem >= max){
      count += 1;
      max = elem;
    }
  }
  System.out.println(count);
  }
}