#include <bits/stdc++.h>
using namespace std;
int a[1010];
int main() {
  long long int n, k, br = 0;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (k >= (a[i] + 1) / 2) {
      if (a[i] > k) {
        k = a[i];
      }
      continue;
    }
    while (k < (a[i] + 1) / 2) {
      k = k * 2;
      br++;
    }
    if (a[i] > k) {
      k = a[i];
    }
  }
  cout << br;
  return 0;
}
