#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  int n, c;
  cin >> n >> c;
  int a[n];
  for (int i = 0; i < n; i += 1) cin >> a[i];
  int ans = 1;
  for (int i = 1; i < n; i += 1) {
    if (a[i] - a[i - 1] > c) {
      ans = 1;
    } else {
      ans += 1;
    }
  }
  cout << ans << endl;
}
