N,K = map(int,input().split()) A = list(map(int,input().split())) A.sort() cnt = 0; for i in range(N): ok = N ng = -1 while abs(ok-ng) > 1: mid = (ok+ng)//2 if A[i]*A[mid] >= K*2: ok = mid else: ng = mid cnt += N-ok print(cnt)