local x,y = io.read("*l"):match("(%d+).(%d+)")
local arr = {}
local result = 0
for _ in io.read("*l"):gmatch("%d+") do
  table.insert(arr,tonumber(_))
end
table.sort(arr)
for i = 1,tonumber(x) do
  if arr[i] >= tonumber(y) then
    result = #arr - i + 1
    break
  end
end
print(result)