#include <bits/stdc++.h>
using namespace std;
double a[3000];
int main() {
  int n;
  double k;
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int ans = 0;
  for (int i = 0; i < n; i++) {
    double div = ceil(a[i] / 2);
    if (div > k) {
      bool ok = false;
      while (!ok) {
        k = k * 2;
        ans++;
        if (k >= div) ok = true;
      }
    }
    k = max(k, a[i]);
  }
  cout << ans << '\n';
}
