#include <bits/stdc++.h>
int n, c, t[100000];
int main() {
  scanf("%d%d", &n, &c);
  for (int i = 0; i < n; i++) scanf("%d", t + i);
  for (int i = n - 1; i > 0; i--)
    if (t[i] - t[i - 1] > c) {
      printf("%d\n", n - i);
      return 0;
    }
  printf("%d\n", n);
}
