#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c, t, i;
  long long a[100000];
  while (scanf("%d %d", &n, &c) != EOF) {
    t = 1;
    cin >> a[0];
    for (i = 1; i < n; i++) {
      cin >> a[i];
      if (a[i] - a[i - 1] <= c)
        t++;
      else
        t = 1;
    }
    cout << t << endl;
  }
  return 0;
}
