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