#include <bits/stdc++.h>
using namespace std;
int main() {
  int c, n, t1, t2, diff = 1;
  scanf("%d %d", &n, &c);
  scanf("%d", &t1);
  for (int i = 1; i < n; i++) {
    scanf("%d", &t2);
    if (t2 - t1 > c) {
      diff = 1;
    } else
      diff++;
    t1 = t2;
  }
  printf("%d\n", diff);
  return 0;
}
