open Printf
open Scanf

let id x = x

let n, d = scanf "%d %d\n" (fun n d -> n, float d)
let ary = Array.init n (fun _ -> scanf "%d %d\n" (fun x y -> float x, float y))

let run () =
    let n = Array.fold_left (fun n (x, y) -> if x *. x +. y *. y <= d *. d then n + 1 else n) 0 ary in
    printf "%d\n" n

let () = run ()
