#include using namespace std; int main() { int N; long long K; cin >> N >> K; vector A( N ); for( int i = 0; i < N; i++ ) cin >> A[i]; K *= 2; sort( A.begin(), A.end() ); long long ans = 0; for( int i = 0; i < N; i++ ) { double k = K / A[i]; ans += A.end() - lower_bound( A.begin(), A.end(), k ); } cout << ans << endl; }