#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i = 0, a[20], b, c = 1;
  cin >> N;
  for (i = 0; N < i; i += 1) {
    cin >> a[i];
    if (i = 0) {
      b = a[0];
    } else {
      if (b < a[i]) {
        b = a[i];
        c += 1;
      }
    }
  }
  cout << c << endl;
}
