#include <bits/stdc++.h>
using namespace std;
int a[2000];
int main() {
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  int num = 0;
  int maxx = k;
  for (int i = 0; i < n; i++) {
    if (a[i] <= k * 2) {
      k = max(a[i], k);
      continue;
    } else {
      while (k * 2 < a[i]) {
        k = k * 2;
        num++;
      }
      k = a[i];
    }
  }
  printf("%d\n", num);
}
