#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, i, j, x, mx_dif, ans = 0;
  vector<long long int> vv;
  cin >> n >> k;
  mx_dif = k;
  for (i = 0; i < n; i++) {
    cin >> x;
    vv.push_back(x);
  }
  sort(vv.begin(), vv.end());
  for (auto it : vv) {
    long long int temp = it, cnt = 0;
    while ((mx_dif * 2) < temp) {
      mx_dif *= 2;
      cnt++;
    }
    ans += cnt;
    mx_dif = max(mx_dif, it);
  }
  cout << ans << endl;
}
