#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  int x = 0;
  int ans = 0;
  scanf("%d", &x);
  int yama[x];
  for (int i = 0; i < x; i++) {
    scanf("%d", &yama[x]);
  }
  for (int i = 0; i < x; i++) {
    for (int j = 0; j != i; j++) {
      if (yama[i] <= yama[j]) {
        ans++;
        break;
      }
    }
  }
  printf("%d\n", x - ans);
  return 0;
}
