import bisect n,k = map(int,input().split()) l = sorted([int(i) for i in input().split()]) s = 0 for i in l: s += n - bisect.bisect_left(l,2*k/i) print(s)