function Main(input) {
  const N = parseInt(input.split(/\n| /)[0].trim());
  const D = parseInt(input.split(/\n| /)[1].trim());
  let result = 0;


  for (i = 1; i <=N; i++){
    let  Xi = parseInt(input.split("\n")[i].split(" ")[0]);
    let  Yi = parseInt(input.split("\n")[i].split(" ")[1]);
    let L = Math.sqrt(Xi**2 + Yi**2);
    if (L <=D){
      result++;
    }
  }
  console.log(result);
  }

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