/*
4 5 n d
0 5 x y
-2 4
3 4
4 -4
*/

function main(input){
  input = input.trim();
  let answer = "";
  let list = input.split("\n");
  let n = list[0][0];
  let d = list[0][1];
  function kyori(x,y){
    return(sqrt(x**2+y**2));
  }
  let count=0;
  for(let i=1; i<list.length; i++){
    let x = parseInt(list[i].split(" ")[0]);
    let y = parseInt(list[i].split(" ")[1]);
    if(kyori(x,y)<=d){count++;}
  }
  answer = count;
  console.log(answer);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
