#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll MOD = 1000000007;
ll mod = 998244353;
int inf = 1000001000;
ll INF = 1e18 + 5;
int main() {
  int n, ans = 0, m = 0;
  cin >> n;
  for (int(i) = 0; (i) < (n); (i)++) {
    int h;
    cin >> h;
    if (h > m) ans++;
    m = max(m, h);
  }
  cout << ans << endl;
}
