function main(input) {
  const [n, d] = input[0].trim().split(" ").map(i => parseInt(i));
  let cnt = 0;
  for(let i=1;i<=n;i++){
    let [x,y]=input[i].trim().split(" ").map(i => parseInt(i));
    if(Math.sqrt(x*x+y*y)<=d){
      cnt++;
    }
  }
  console.log(cnt);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));