#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) cin >> a.at(i);
  int count = 1;
  for (int i = 1; i < (N - 1); i++) {
    for (int j = 0; j < i; j++) {
      if (a.at(i) > a.at(j))
        continue;
      else if (j == i - 1)
        count++;
    }
  }
  cout << count << endl;
}
