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