#include <bits/stdc++.h>
using namespace std;
int main() {
  int N = 0;
  int H[20] = {0};
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> H[i];
  }
  int res = 0;
  for (int i = N; i > 0; i--) {
    int hi = 0;
    for (int j = i - 1; j > 0; j--) {
      if (H[i] > H[j]) {
        hi++;
      }
    }
    if (hi == i - 1) {
      res++;
    }
  }
  cout << res;
  return 0;
}
