"use strict";

const main = (input) => {
    const spi = input.split('\n');
    const [n, d] = spi[0].split(' ');

    let ans = 0;
    for (let i = 1; i < spi.length; i++) {
        const [x, y] = spi[i].split(' ');
        if (Math.sqrt(x ** 2 + y ** 2) <= d) ans++;
    }

    console.log(ans);
};

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