(async () => {
    let input = '';
    for await (const chunk of process.stdin) input += chunk;
    let lines = input.split(/\n/);
    const [n, d] = lines.shift().split(/\s/);
    const points = lines.slice(0, n).map(line => line.split(/\s/).map(v => +v));

    const d2 = d*d;
    let count = 0;
    for (const point of points) {
        if(d2 >= point[0] * point[0] + point[1] * point[1]){
            count++;
        }
    }
    console.log(count);
})()
