N,K=map(int,input().split()) A=[0]+sorted(map(int,input().split())) K2=K*2 sm=0 i=N for a in A: while a*A[i]>=K2: i-=1 sm+=N-i print(sm)