'use strict';

function Main(input) {
    let tmp = input.trim().split('\n');
    const [N, D] = tmp[0].split(' ').map((v) => Number(v));
    tmp.shift();
    const points = tmp.map((v) => v.split(' ').map((v) => Number(v)));

    let result = 0;
    for (const [p, q] of points) {
        const ans = Math.sqrt(p * p + q * q);
        if (ans <= D) {
            result += 1;
        }
    }
    console.log(result);

    return;
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));