process.stdin.resume();
process.stdin.setEncoding('utf8');
// 自分の得意な言語で
// Let's チャレンジ！！

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  const readLines = (input) => input.split('\n')
  var c = (value) => console.log(value)
var N = parseInt(lines[0].split(' ')[0]);
var D = parseInt(lines[0].split(' ')[1]);
  
var count =0;
  for(var i=1;i<=N;i++){
   if(parseInt(lines[i].split(' ')[0])**2 + parseInt(lines[i].split(' ')[1])**2 <= D**2 ){
   	count++;
   }
  }
  
  c(count);

  
});