#include <bits/stdc++.h>
int n, i, count;
int h[20] = {};
int k = 0;
int j = 0;
int main() {
  scanf("%d", &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);
}
