import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  } main {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc int[] hights = new int[count]; hights new int[count] count for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
      hights[i] = sc.nextInt();
    } {
      hights[i] = sc.nextInt();
    } hights[i] = sc.nextInt() hights[i] hights i sc.nextInt() sc.nextInt sc int highest = hights[0]; highest hights[0] hights 0 int result = 0; result 0 for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    } {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    } if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      } hights[i] >= highest hights[i] hights i highest {
        result++;
        highest = hights[i];
      } result++ result highest = hights[i] highest hights[i] hights i System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();
    int[] hights = new int[count];

    for (int i = 0; i < count ; i++ ) {
      hights[i] = sc.nextInt();
    }

    int highest = hights[0];

    int result = 0;

    for (int i = 0; i < count ; i++ ) {
      if (hights[i] >= highest) {
        result++;
        highest = hights[i];
      }
    }

    System.out.println(result);
  }
}
