const main = (stdin) => {
    const input = stdin.split("\n");
    const init = input[0].split(' ');
  	
    let c = 0;
  	for(let i=1;i<=parseInt(init[0]);i++) {
	  const xy = input[i].split(' ');
	  if((Math.sqrt((parseInt(xy[0])**2) + (parseInt(xy[1])**2))) <= parseInt(init[1])) c++;
    }
  console.log(c);
 
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));