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