function Main(input) {
    let answer = 0;
    let list = input.split("\n");
    let row = list[0].split(" ")
    let N = parseInt(row[0], 10);
    let D = parseInt(row[1], 10);
    let x = 0;
    let y = 0;

    for (let i=1; i<=N; i++) {
        row = list[i].split(" ");
        x = parseInt(row[0], 10);
        y = parseInt(row[1], 10);
        if (x**2 + y**2 <= D**2) {
            answer++;
        }
    }
    console.log(answer);
}

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