#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  long long int n, c;
  cin >> n >> c;
  long long int ip[n];
  for (long long int i = 0; i < n; i++) cin >> ip[i];
  long long int ans = 1;
  for (long long int i = n - 2; i > -1; i--) {
    if (ip[i + 1] - ip[i] > c)
      return cout << ans, 0;
    else
      ans++;
  }
  cout << ans;
}
