1 2
9
 7 6
4 20 16 14 3 17 4
 1 1
1000000000
 4 2
45 44 35 38
 2 1
4 1000000000
 2 1
1 4
 100 10
246 286 693 607 87 612 909 312 621 37 801 558 504 914 416 762 187 974 976 123 635 488 416 659 988 998 93 662 92 749 889 78 214 786 735 625 921 372 713 617 975 119 402 411 878 138 548 905 802 762 940 336 529 373 745 835 805 880 816 94 166 114 475 699 974 462 61 337 555 805 968 815 392 746 591 558 740 380 668 29 881 151 387 986 174 923 541 520 998 947 535 651 103 584 664 854 180 852 726 93
 3 3
1 5 20
 2 2
7 14
 9 30111088
824713578 11195876 458715185 731769293 680826358 189542586 550198537 860586039 101083021
 5 1
23 8 83 26 18
 3 1
4 8 16
 50 100
74 55 33 5 83 24 75 59 30 36 13 4 62 28 96 17 6 35 45 53 33 11 37 93 34 79 61 72 13 31 44 75 7 3 63 46 18 16 44 89 62 25 32 12 38 55 75 56 61 82
 9 1
1 2 4 9 15 32 64 128 1024
 2 5
10 11
 3 1
1 3 6
 3 19905705
263637263 417905394 108361057
 4 1
88 55 14 39
 3 1
4 5 6
 1 1
4
 3 2
4 9 18
 2 2
3 6
 1 1
20
 2 60669400
95037700 337255240
 29 2
1 3 7 15 31 63 127 255 511 1023 2047 4095 8191 16383 32767 65535 131071 262143 524287 1048575 2097151 4194303 8388607 16777215 33554431 67108863 134217727 268435455 536870911
 5 1
100 200 400 1000 2000
 2 10
21 42
 5 3
6 6 6 13 27
 3 1
1 4 6
 2 1
3 6
 1 1
3
 2 2
2 8
 1 1000000000
1
 4 1
2 4 8 32
 4 28
34 1 86 90
 4 25
100 11 1 13
 3 6
13 26 52
 3 3
1 7 13
 3 1
2 3 6
 2 1
3 5
 2 1
2 3
 2 2
8 16
 10 295206008
67980321 440051990 883040288 135744260 96431758 242465794 576630162 972797687 356406646 547451696
 5 3
1024 4096 16384 65536 536870913
 1 4
9
 2 1
5 10
 2 1
1 1000000000
 3 165219745
737649884 652879952 506420386
 3 72014068
430005292 807436976 828082746
 3 1
3 6 9
 2 2
8 11
 5 2
86 81 53 25 18
 1 1
2
 2 1
4 8
 3 2
4 5 6

2 1 29 4 28 1 1 1 1 2 4 1 0 4 0 1 3 4 1 1 1 0 4 1 27 7 1 2 1 1 1 1 0 1 1 1 1 1 0 1 0 1 0 24 1 2 29 1 2 1 1 4 0 1 0
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

/**
 * Created by aps36017 on 14/7/17.
 */
public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int k = Integer.parseInt(st.nextToken());
        int array[] = new int[n + 1];
        st = new StringTokenizer(br.readLine());
        for(int i = 1;i <= n;i++)
            array[i] = Integer.parseInt(st.nextToken());
        Arrays.sort(array);
        long curr = k;
        int ans = 0;
        for(int i = 1;i <= n;i++){
            if(curr >= array[i])continue;
            else{
                while(curr*2 < array[i]){
                    curr *= 2;
                    ++ans;
                }
            }
        }
        System.out.println(ans);
    }
}
