function Main(input) {
  input = input.split("\n");
  var [n, d] = input[0].split(" ").map((a) => parseInt(a, 10));
  var counter = 0;
  for (var i=0; i<n; i++) {
    var [x, y] = input[i+1].split(" ").map((a) => parseInt(a, 10));
    var distance = Math.sqrt(x**2 + y**2);
    if (distance <= d) {
      counter += 1;
    }
  }
  console.log(counter);
}

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