#include <bits/stdc++.h>
using namespace std;
long long n, i, x, y, j, a[10000], k, q, ans, e, u;
int main() {
  cin >> n >> k;
  for (i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  for (i = 0; i < n; i++) {
    e = k;
    u = 0;
    while (e * 2 < a[i]) {
      e *= 2;
      ans++;
    }
    k = max(k, a[i]);
  }
  cout << ans;
  return 0;
}
