function Main(input) {
	input = input.split("\n");
  	var tmp = input[0].split(" ");
  	var N = tmp[0];
  	var D = tmp[1];
  
  	var count = 0;
  
  	for(var i = 1; i <= N; i++){	
		var tmp = input[i].split(" ");
      	var x = tmp[0];
      	var y = tmp[1];
      	var distance = Math.sqrt((x*x) + (y*y));
      	if(distance <= D){
        	count++;
        }
    }
  	console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));