#include <bits/stdc++.h>
int asc_cmp(const void* X, const void* Y) {
  int x = *(int*)X, y = *(int*)Y;
  if (x < y)
    return -1;
  else if (x == y)
    return 0;
  else
    return 1;
}
int desc_cmp(const void* X, const void* Y) {
  int x = *(int*)X, y = *(int*)Y;
  if (x < y)
    return 1;
  else if (x == y)
    return 0;
  else
    return -1;
}
int main() {
  int n;
  scanf("%d", &n);
  int h[n];
  for (int i = 0; i < n; i++) scanf("%d", &h[i]);
  int ans = 1;
  int flg = 1;
  for (int i = 1; i < n; i++) {
    for (int j = 0; j < i; j++) {
      if (h[i] < h[j]) {
        flg = 1;
        break;
      }
    }
    if (!flg) ans++;
    flg = 0;
  }
  printf("%d\n", ans);
}
