function Main(input) {
    input = input.split("\n");
    var num = parseInt(input[0].split(" ")[0]);
    var basis = parseInt(input[0].split(" ")[1]);
    var x = 0;
    var y = 0;
    var count = 0;
    
    function CalcHeihoukon(a,b){
        return Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
    }
    for(var i=1; i<=num; i++){
        x = parseInt(input[i].split(" ")[0]);
        y = parseInt(input[i].split(" ")[1]);
        if(CalcHeihoukon(x,y)<=basis){
            count+=1;
        }
    }
   console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));