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): ans += n - bisect_left(A, 2*k/A[i]) print(ans)