n = gets.split(" ").map(&:to_i) 
ary = n[0].times.map{gets.split.map(&:to_i)}
standard = n[1]
count = 0
ary.each do |a|
  a_zizyou = a[0]**2
  b_zizyou = a[1]**2
  sum = a_zizyou + b_zizyou
  distance = Math.sqrt(sum)
  if standard >= distance
    count += 1
  end
end  
print("#{count}\n")