#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a.begin(), a.end());
  int counter = 0;
  for (int i = 0; i < n; i++) {
    while (2 * k < a[i]) {
      k *= 2;
      counter++;
    }
    k = max(a[i], k);
  }
  cout << counter;
  return 0;
}
