n, k = map(int, input().split()) X = list(map(int, input().split())) now = -10**10 cnt = 0 for x in X: if now + k <= x: cnt += 1 now = x print(cnt)