#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[105], n, t = 1, i, maxv = 0;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
  }
  maxv = a[1];
  for (i = 2; i <= n; i++) {
    if (a[i] > maxv) {
      maxv = a[i];
      t++;
    }
  }
  cout << t << endl;
  return 0;
}
