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