N,K = map(int, input().split()) X = list(map(int, input().split())) next = X[0]+K ans = 1 for i in range(1,N): if next<=X[i]: ans += 1 next = X[i]+K print(ans)