#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int arr[100005], n, c, i, j, count;
  while (scanf("%I64d %I64d", &n, &c) == 2) {
    for (i = 0; i < n; i++) scanf("%I64d", &arr[i]);
    count = 1;
    for (i = 0; i < n - 1; i++) {
      if (arr[i + 1] - arr[i] > c)
        count = 1;
      else
        count++;
    }
    printf("%I64d\n", count);
  }
  return 0;
}
