let scan_int () = Scanf.scanf " %d" (fun x -> x)
let print_int n = Printf.printf "%d\n" n

let rec solve i n k ret =
  if i = n then ret
  else
    let a = scan_int() in
    if a < k then solve (i+1) n k ret
    else solve (i+1) n k (ret+1)

let () =
  let n = scan_int() and k = scan_int() in
  print_int (solve 0 n k 0)
