#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 1;
  cin >> n;
  vector<int> s(n);
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  for (int i = 0; i < n - 1; i++) {
    for (int j = 0; j < i; j++) {
      if (s[i] >= s[j]) {
        continue;
      } else {
        break;
      }
    }
    count += 1;
  }
  cout << count << endl;
}
