# frozen_string_literal: true

N, D = gets.chomp.split.map(&:to_i)

def distance(p, q)
  Math.sqrt(p**2 + q**2)
end
count = 0
N.times.map do
  x, y = gets.chomp.split.map(&:to_i)
  dist = distance(x, y)
  count += 1 if dist <= D
end

puts count
