function Main(input) {
    input = input.split("\n");
    const nd = input[0].split(" ");
    const n = parseInt(nd[0], 10);
    const d = parseInt(nd[1], 10);

    let count = 0;
    for(let i = 1; i <= n; i++) {
        const xy = input[i].split(" ");
        const x = parseInt(xy[0], 10);
        const y = parseInt(xy[1], 10);

        const r = Math.sqrt(x ** 2 + y ** 2);
        if(r <= d) {
            count++;
        }
    }

    console.log(count);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));