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