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