function Main(input) {
  	input = input.split("\n")  
	input = input.map(x => x.split(" "))
  	let output = 0
    const D = input[0][1]
  	
  	for(let i=1;i<=input[0][0];i++){
    	if(Math.sqrt(input[i][0]*input[i][0]+input[i][1]*input[i][1]) <= D){
        	output++   
        }
    }
  
    console.log(output)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));