#include <bits/stdc++.h>
using namespace std;
string* s = new string[10];
int main() {
  int n, k;
  cin >> n;
  cin >> k;
  int* a = new int[n];
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int ans = 0;
  sort(a, a + n);
  for (int j = 0; j < n; ++j) {
    if (a[j] > k * 2) {
      while (a[j] > 2 * k) {
        k *= 2;
        ans++;
      }
      k = a[j];
    } else if (a[j] > k)
      k = a[j];
  }
  cout << ans;
  return 0;
}
