n, k = map(int, input().split()) x = list(map(int, input().split())) c = 1 now = x[0] for i in x[1:]: if i - now >= k: c += 1 now = i print(c)