#include <bits/stdc++.h>
using namespace std;
const int N = 1000005;
vector<long long> v;
int main() {
  long long n, k;
  cin >> n >> k;
  for (long long i = 0; i < n; ++i) {
    long long x;
    cin >> x;
    v.push_back(x);
  }
  long long c = 0;
  sort(v.begin(), v.end());
  for (long long i = 0; i < n; ++i) {
    if (v[i] > k * 2) {
      k *= 2, ++c, --i;
      continue;
    }
    k = max(k, v[i]);
  }
  cout << c;
}
