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