import bisect N, K = map(int, input().split()) A = list(map(int, input().split())) A.sort() cnt = 0 for a in A: b = 2*K/a pos = bisect.bisect_right(A, b) cnt+=N-pos print(cnt)