from bisect import bisect_left N,K = map(int,input().split()) A = list(map(int,input().split())) A.sort() K *= 2 ans = 0 for i in range(N): b = K / A[i] ans += N - bisect_left(A, b) print(ans)