#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, m[20], p = 0, q = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    scanf("%d", &m[i]);
    if (m[i] >= q) {
      q = m[i];
      p++;
    }
  }
  printf("%d", p);
  return 0;
}
