const main = input => {
  const inputs = input.trim().split('\n')
  const [N, D] = inputs[0].split(' ').map((x) => parseInt(x))

  let count = 0
  for (let i = 0; i < N; i++) {
    const [x, y] = inputs[i + 1].split(' ').map((a) => parseInt(a))
    if (x * x + y * y <= D * D) {
      count++;
    }
  }

  console.log(count)
}


// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
