#include <bits/stdc++.h>
int n = 0;
int i, count;
int h[20];
int k = 0;
int j = 0;
int main(void) {
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &h[i]);
  }
  for (i = 0; i < n; i++) {
    while (h[j] <= h[i]) {
      if (j == i) {
        count++;
      }
      j++;
    }
    j = 0;
  }
  printf("%d\n", count);
  return 0;
}
