const main = (stdin) => {
    const input = stdin.split("\n");
    const { count, distance } = Number(input[0].split(' '));
  	
    let c = 0;
  	for(let i=1;i<count;i++) {
	  const { x, y } = input[i].split(' ');
	  if(Math.sqrt(x^2 + y^2) <= distance) c++;
    }
  console.log(c);

}

main(require("fs").readFileSync("/dev/stdin", "utf8"));

