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