import sys from bisect import bisect_left input = lambda: sys.stdin.readline().rstrip() # ----------------------- # n, k = map(int, input().split()) A = list(map(int, input().split())) A.sort() ans = 0 for i in range(n): "bisect_left(A, x) -> x未満の数の個数" ans += n - bisect_left(A, 2*k/A[i]) print(ans)