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

XY = Array.new(N, Array.new(2,0))

(0...N).each do |n| 
  XY[n] = gets.chomp.split.map &:to_i
end

cnt = 0

(0...N).each do |n| 
  dis = Math.sqrt(XY[n][0]**2+XY[n][1]**2)
  cnt += 1 if dis <= D
end

print cnt