import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  }
} import java.util.LinkedList; LinkedList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan List<Integer> list = new LinkedList<>(); list new LinkedList<>() for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      list.add(scan.nextInt());
    } {
      list.add(scan.nextInt());
    } list.add(scan.nextInt()) list.add list scan.nextInt() scan.nextInt scan int maxHeight = 0; maxHeight 0 int count = 0; count 0 for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    } int h list {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    } {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    } if (h >= maxHeight) {
        count++;
        maxHeight = h;
      } h >= maxHeight h maxHeight {
        count++;
        maxHeight = h;
      } count++ count maxHeight = h maxHeight h 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) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  }
} Main
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    List<Integer> list = new LinkedList<>();
    for (int i = 0; i < N; i++) {
      list.add(scan.nextInt());
    }
    int maxHeight = 0;
    int count = 0;
    for (int h : list) {
      if (h >= maxHeight) {
        count++;
        maxHeight = h;
      }
    }

    System.out.println(count);
  }
}
