try:
    N, x = map(int, input().split())
    l = list(map(int, input().split()))
    l_ = sorted(l)
    cnt = 0
    for i in l_:
        _ = x-i
        if _>= 0:
            cnt += 1
        if _<0:
            break
    print(cnt)
except EOFError:
    pass