process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
    const [N, D] = lines[0].split(" ").map(v=>v-0);
    let ans = 0;
    for(let i=1;i<=N;i++){
        const [a,b] = lines[i].split(" ").map(v=>v-0);
        const d = Math.sqrt(a*a+b*b);
        if(D>=d) ans++;
    }
    console.log(ans);
});
