#include <bits/stdc++.h>
using namespace std;
char _;
long long power(long long x, long long y) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = (res * x) % 1000000007;
    y = y >> 1;
    x = (x * x) % 1000000007;
  }
  return res % 1000000007;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (__typeof(n) i = 0; i < n; ++i) {
    cin >> a[i];
  };
  int maxi = a[0];
  int ans = 1;
  for (int i = 1; i < n; ++i) {
    int f = 0;
    for (int j = 0; j < i; ++j) {
      if (a[j] > a[i]) {
        f = 1;
        break;
      }
    }
    if (!f) ++ans;
  }
  cout << ans;
  return 0;
}
