#include <bits/stdc++.h>
using namespace std;
const int mxN = 100001;
int Mt[mxN];
int main() {
  int n, c, ans = 0;
  cin >> n >> c;
  for (int i = 1; i <= n; i++) {
    cin >> Mt[i];
  }
  Mt[0] = Mt[1];
  for (int i = 1; i <= n; i++) {
    ans++;
    if (Mt[i] - Mt[i - 1] > c) ans = 1;
  }
  cout << ans;
  return 0;
}
