N,K=map(int,input().split()) A=[int(s) for s in input().split()] sm=0 K2=2*K for i in A: for j in A: if i*j>=K2: sm+=1 print(sm)