N, K = map(int, input().split()) A = [0] + sorted(map(int, input().split())) K2 = K * 2 ans = 0 i = N for j in A: while j * A[i] >= K2: i -= 1 ans += N - i print(ans)