# coding: utf-8

import numpy as np





def main():



    _, limit = list(map(int, input().split(' ')))

    heights = np.array(list(map(int, input().split(' '))))



    print((np.count_nonzero(heights >= limit)))



    return 0

    

    

if __name__ == '__main__':

    main()

# coding: utf-8





def main():



    n, limit = list(map(int, input().split(' ')))

    heights = list(map(int, input().split(' ')))

    heights = sorted(heights, reverse=True)



    nakama_count = 0

    for height in heights:

        if height >= limit:

            nakama_count += 1

        else:

            break



    print(nakama_count)



    return 0

    

    

if __name__ == '__main__':

    main()

# coding: utf-8
import numpy as np


def main():
    _, limit = list(map(int, input().split(" ")))
    heights = np.array(list(map(int, input().split(" "))))
    print((np.count_nonzero(heights >= limit)))
    return 0


if __name__ == "__main__":
    main()

# coding: utf-8
def main():
    n, limit = list(map(int, input().split(" ")))
    heights = list(map(int, input().split(" ")))
    heights = sorted(heights, reverse=True)
    nakama_count = 0
    for height in heights:
        if height >= limit:
            nakama_count += 1
        else:
            break
    print(nakama_count)
    return 0


if __name__ == "__main__":
    main()

-import numpy as np - - -    _, limit = list(map(int, input().split(" "))) -    heights = np.array(list(map(int, input().split(" ")))) -    print((np.count_nonzero(heights >= limit))) +    n, limit = list(map(int, input().split(" "))) +    heights = list(map(int, input().split(" "))) +    heights = sorted(heights, reverse=True) +    nakama_count = 0 +    for height in heights: +        if height >= limit: +            nakama_count += 1 +        else: +            break +    print(nakama_count)