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