'use strict'

const main = (INPUT) => {
  const input = INPUT.split('\n')
  const [N, D] = input[0].split(' ')
  let ans = 0
  for (let i = 1; i < input.length; i++) {
    const [X, Y] = input[i].split(' ')
    if (Math.sqrt(X ** 2 + Y ** 2) <= D) {
      ans++
    }
  }
  console.log(ans)
}

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