console.log((args=>{
  const [[N,D],...tmp] = args.trim().split`\n`.map(r=>r.split` `.map(v=>v|0));
  let count = 0;
  for ( let i = 0; i < N; i++ ) {
    let [X,Y] = tmp[i];
    if ( D >= Math.sqrt(X*X+Y*Y) ) count++;
  }
  return count;
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
