attrs = Array.new
while line = $stdin.gets
    attrs << line.chomp.split.map{|v| v.to_i }
end

tmp = attrs.shift
N = tmp.shift
K = tmp.shift
H = attrs.shift
result = 0
if N == 1 then
  result += 1 if H[0] >= K
else
  H.each {|h| result += 1 if h >= K}
end
puts result