number = 0
height = 0
while(number < 1 || number > 100000)
  number = gets.to_i
end
while(height < 1 || height > 500)
  height = gets.to_i
end
count = 0

number.times do |tmp|
  student = gets.to_i
  redo if student < 1 || student > 500
  count += 1  if student >= height
end
p count