#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll n,k; cin>>n>>k; vector A(n); rep(i,n) cin>>A[i]; sort(ALL(A)); ll ans=0; rep(i,n){ auto t=lower_bound(ALL(A),(2*k+A[i]-1)/A[i])-A.begin(); ans+=n-t; } cout<