#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int res = 0, n, k;
  cin >> n >> k;
  vector<int> v(n);
  for (int(i) = 0; (i) < (n); (i)++) cin >> v[i];
  sort(v.begin(), v.end());
  for (int(i) = 0; (i) < (n); (i)++) {
    if (k * 2 < v[i]) {
      res++;
      k *= 2;
      i--;
    } else
      k = max(k, v[i]);
  }
  cout << res << endl;
  return 0;
}
