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