#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.precision(10), cout << fixed;
  long long n, k, counter = 0;
  cin >> n >> k;
  vector<long long> v(n);
  for (int i = 0; i < n; ++i) cin >> v[i];
  sort(v.begin(), v.end());
  for (int i = 0; i < n; ++i) {
    if (k >= (v[i] + 1) / 2)
      k = max(k, v[i]);
    else {
      k *= 2;
      counter++;
      i--;
    }
  }
  cout << counter++;
  return 0;
}
