N, D = gets.split().map(&:to_i)
ans = 0
retu = []

(1..N).each do |cnt|
  #retu.pushで配列の末尾に追加
  retu.push(gets.split().map(&:to_i))
  #retu.lastで配列の最後をとる
  hantei = Math.sqrt(retu.last[0] ** 2 + retu.last[1] ** 2)
  if hantei <= D
    ans += 1
  end
end
puts ans
