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