import sys



n, k = list(map(int, sys.stdin.readline().split()))



a = list(map(int, sys.stdin.readline().split()))



print((len(list([x for x in a if x >= k]))))
n, k = list(map(int, input().split()))

a = [int(x)>=k for x in input().split()]

print((sum(a)))
import sys

n, k = list(map(int, sys.stdin.readline().split()))
a = list(map(int, sys.stdin.readline().split()))
print((len(list([x for x in a if x >= k]))))

n, k = list(map(int, input().split()))
a = [int(x) >= k for x in input().split()]
print((sum(a)))

-import sys - -n, k = list(map(int, sys.stdin.readline().split())) -a = list(map(int, sys.stdin.readline().split())) -print((len(list([x for x in a if x >= k])))) +n, k = list(map(int, input().split())) +a = [int(x) >= k for x in input().split()] +print((sum(a)))