N,K = map(int,input().split()) A = list(map(int,input().split())) K *= 2 A = sorted(A) ans = 0 for i in range(N): # A[i] * A[j]がK以上である if A[i] * A[-1] < K: continue if A[i] * A[0] >= K: ans += N continue ng = 0 ok = N while abs(ng - ok) > 1: mid = abs(ng + ok) // 2 if A[i] * A[mid] >= K: ok = mid else: ng = mid ans += N - (ng + 1) print(ans)