#include <bits/stdc++.h>
using namespace std;
int b[100009];
int a[100009];
int main() {
  int flag = 0;
  int i, j, c, n, cnt = 0;
  cin >> n >> c;
  for (i = 1; i <= n; i++) cin >> a[i];
  for (i = 1; i <= n; i++) {
    flag = 0;
    if (a[i] - a[i - 1] > c) {
      flag = 1;
    }
    if (!flag) {
      cnt++;
    } else
      cnt = 1;
  }
  cout << cnt << endl;
}
