#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
inline void amin(T &x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
inline void amax(T &x, U y) {
  if (x < y) x = y;
}
const long long inf = 1LL << 58;
const int iinf = 1 << 30;
int main() {
  int n;
  cin >> n;
  int h[n];
  for (int i = 0; i < int(n); i++) {
    cin >> h[i];
  }
  int tmp = 1;
  int ok = 0;
  for (int i = int(1); i < int(n); ++i) {
    for (int j = int(0); j < int(i); ++j) {
      if (h[i] <= h[j]) {
        ok = 1;
      }
    }
    if (ok == 0) {
      tmp++;
    }
    ok = 0;
  }
  cout << (tmp) << endl;
}
