n, d = map(int, input().split())
l_n = list(map(int, input().split()))
l_d = []

if d != 0:
    for i in l_n:
        if i >= d and i <= n:
            l_d.append(i)
    print(len(l_d))
else:
    print(d)

