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