"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0].split(" ")[0]);
    const D = parseInt(arg[0].split(" ")[1]);
    
    const XY = arg.slice(1, N + 1).map(n=>n.split(" ").map(l=>parseInt(l)));
    let answer = 0;
    
    for(let i=0; i<N; i++) {
        const p = XY[i][0];
        const q = XY[i][1];
        
        const abs = Math.sqrt(Math.pow(p, 2) + Math.pow(q, 2));
        
        if(abs <= D) {
            answer++;
        }
    }
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));