function main(lines) {
  const [N, D] = splitN(lines[0]);

  let ans = 0;
  for (let i = 1; i <= N; i++) {
    const [x, y] = splitN(lines[i]);
    if (Math.sqrt(x*x + y*y) <= D) ans++;
  }
  
  return ans;
}


const ans = main( require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n") );
console.log( ans );

function splitN(s) {
  return s.split(' ').map(Number);
}
