from bisect import bisect_left n, t = map(int, input().split()); t *= 2 a = sorted(map(int, input().split())) ans = 0 for i in a: k = -(-t // i) ans += n - bisect_left(a, k) print(ans)