#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
long long a[maxn];
long long n, c;
int main() {
  long long ans = 1;
  cin >> n >> c;
  cin >> a[0];
  for (int i = 1; i < n; i++) {
    cin >> a[i];
    if (a[i] - a[i - 1] > c)
      ans = 1;
    else
      ans++;
  }
  cout << ans << endl;
  return 0;
}
