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