
require 'complex'

N, D = gets.split.map(&:to_i)
array = readlines.map(&:chomp!).map { |e| e.split.map(&:to_i) }
count = 0
array.each do |p, q|
  if Math.sqrt(p ** 2 + q ** 2) <= D
    count += 1
  end
end

puts count
