#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, k;
  cin >> n >> k;
  vector<long long> arr(n);
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr.begin(), arr.end());
  long long ans = 0;
  for (auto e : arr) {
    while (k * 2 < e) {
      ans++;
      k *= 2;
    }
    k = max(k, e);
  }
  cout << ans << endl;
}
