# coding: utf-8
class Case02

  def initialize
  end

  def show
    p self.instance_variables
        .map{ |sym| [sym, self.instance_variable_get(sym)] }
        .to_h
  end
  
  # 実行する
  def execute
    read
    solve
    output
  end

  # 読込
  def read
    @n, @k = gets.chomp.split.map(&:to_i)
    @h = gets.chomp.split.map(&:to_i)
  end

  # 回答
  def solve
    @result = @h.reduce(0) do |r,x|
      r += (x >= @k) ? 1 : 0
    end
  end
  
  # 出力
  def output
    puts @result
  end

end

Case02.new.execute if $0 == __FILE__

