N, D = gets.chomp.split(' ').map(&:to_i)
X = []
Y = []
Xtmp = 0
Ytmp = 0
N.times do
  xtmp, ytmp = gets.chomp.split(' ').map(&:to_i)
  X.push(xtmp)
  Y.push(ytmp)
end
dist = []
N.times do |index|
  dist[index] = Math.sqrt(X[index]**2 + Y[index]**2)
end
count = 0
N.times do |index|
  if dist[index] <= D
    count += 1
  end
end
print count