def atc_142b(NK_input: str, hi_input: str) -> int:
    N, K = map(int, NK_input.split(" "))
    hi = [int(i) for i in hi_input.split(" ")]
    hi = sorted(hi)
    for i in range(0, len(hi)):
        if hi[i] >= K:
            return len(hi) - i
    return 0


NK_input_value = input()
hi_input_value = input()
print(atc_142b(NK_input_value, hi_input_value)) def atc_142b(NK_input: str, hi_input: str) -> int:
    N, K = map(int, NK_input.split(" "))
    hi = [int(i) for i in hi_input.split(" ")]
    hi = sorted(hi)
    for i in range(0, len(hi)):
        if hi[i] >= K:
            return len(hi) - i
    return 0 atc_142b N, K = map(int, NK_input.split(" ")) N map(int, NK_input.split(" ")) map int NK_input.split(" ") NK_input.split NK_input split " " K int(i) for i in hi_input.split(" ") for i in hi_input.split(" ") i hi_input.split(" ") hi_input.split hi_input split " " for i in hi_input.split(" ") int(i) int i hi = [int(i) for i in hi_input.split(" ")] hi [int(i) for i in hi_input.split(" ")] hi = sorted(hi) hi sorted(hi) sorted hi for i in range(0, len(hi)):
        if hi[i] >= K:
            return len(hi) - i
     i range(0, len(hi)) range 0 len(hi) len hi if hi[i] >= K:
            return len(hi) - i
     hi[i] >= K hi[i] hi i K return len(hi) - i len(hi) - i len(hi) len hi i return 0 0 NK_input: str NK_input hi_input: str hi_input NK_input_value = input() NK_input_value input() input hi_input_value = input() hi_input_value input() input print(atc_142b(NK_input_value, hi_input_value)) print atc_142b(NK_input_value, hi_input_value) atc_142b NK_input_value hi_input_value hi_input_value = input() input() hi_input_value NK_input_value = input() input() NK_input_value def atc_142b(NK_input: str, hi_input: str) -> int:
    N, K = map(int, NK_input.split(" "))
    hi = [int(i) for i in hi_input.split(" ")]
    hi = sorted(hi)
    for i in range(0, len(hi)):
        if hi[i] >= K:
            return len(hi) - i
    return 0 def atc_142b(NK_input: str, hi_input: str) -> int:
    N, K = map(int, NK_input.split(" "))
    hi = [int(i) for i in hi_input.split(" ")]
    hi = sorted(hi)
    for i in range(0, len(hi)):
        if hi[i] >= K:
            return len(hi) - i
    return 0 atc_142b
def atc_142b(NK_input: str, hi_input: str) -> int:
    N, K = map(int, NK_input.split(" "))
    hi = [int(i) for i in hi_input.split(" ")]
    hi = sorted(hi)
    for i in range(0, len(hi)):
        if hi[i] >= K:
            return len(hi) - i
    return 0


NK_input_value = input()
hi_input_value = input()
print(atc_142b(NK_input_value, hi_input_value))
