function main(arg) {
    let [N,D] = arg.split("\n")[0].split(" ").map(Number)
    let p = arg.split("\n")
    p.shift()
    let x = p.map(x=>Number(x.split(" ")[0]))
    let y = p.map(y=>Number(y.split(" ")[1]))
    
    let counter=0
    for(let i=0; i<N; i++) {
        if(D**2 <= x[i]**2+y[i]**2) {
            counter++
        }
    }
    
    console.log(counter)
    
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
