#include <bits/stdc++.h>
int main() {
  int n, i, j, flag;
  scanf("%d", &n);
  int H[30] = {};
  int count = 0;
  for (i = 0; i < n; i++) {
    flag = 1;
    scanf("%d", &H[i]);
    if (i == 0) {
      count++;
    } else {
      for (j = 0; j < i; j++) {
        if (H[i] > H[j]) flag = 0;
      }
      if (flag == 1) count++;
    }
  }
  printf("%d", count);
  return 0;
}
