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