const input = require("fs").readFileSync("/dev/stdin", "utf8")
const lines = input.split('\n')
const [N, D] = lines[0].split(' ').map(Number)

let count = 0
for (let i = 1; i <= N; i++) {
    const [x, y] = lines[i].split(' ').map(Number)
    let d = Math.pow(x, 2) + Math.pow(y, 2)
    d = Math.pow(d, 0.5)
    if (d <= D) {
        count++
    }
}

console.log(count)