include Math

def root(a,b)
  sqare = a*a + b*b
  squ = Math.sqrt(sqare)
  return squ
end

n, d = gets.chomp.split.map(&:to_i)
point = []
(1..n).each do |i|
  point << gets.split.map(&:to_i)
end

i=0
count = 0
for i in 0..n-1
  if root(point[i][0], point[i][1]) <= d 
    count += 1
  end
end

p count
