#include <bits/stdc++.h>
using namespace std;
int inf = 2147483647;
const long long ll = 9223372036854775807, ninf = 1000000000;
const double eps = 1e-6;
const long long nll = 223372036854775807;
int A[100005] = {};
int main() {
  int a, b;
  while (cin >> a >> b) {
    for (int i = 0; i < a; i++) cin >> A[i];
    sort(A, A + a);
    int ans = 0;
    int now = b;
    for (int i = 0; i < a; i++) {
      while (now * 2 < A[i]) {
        now *= 2;
        ans++;
      }
      now = max(now, A[i]);
    }
    cout << ans << '\n';
  }
  return 0;
}
