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