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