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

    let count = 0;
    for(let i=1; i<input.length; i++){
        const xy = input[i].split(' ');
        const x = parseInt(xy[0], 10);
        const y = parseInt(xy[1], 10);
        const ret = Math.sqrt((x*x) + (y*y));
        if(ret <= d) {
            count++;
        }
    }
    console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));