n,k = map(int,input().split()) l = [int(i) for i in input().split()] s = 0 for i in l: s += len([1 for x in l if 2*k/i<=x]) print(s)