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