# -*- coding: utf-8 -*-
import numpy
n, d = map(int, input().split())

li = []
for i in range(n):
  x, y = map(int,input().split())
  li.append([x, y])

answer = 0
for i in li:
  if numpy.sqrt(i[0]**2 + i[1]**2) <= d:
    answer += 1
print(answer) import numpy numpy n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d li = [] li [] for i in range(n):
  x, y = map(int,input().split())
  li.append([x, y]) i range(n) range n x, y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y li.append([x, y]) li.append li append [x, y] x y answer = 0 answer 0 for i in li:
  if numpy.sqrt(i[0]**2 + i[1]**2) <= d:
    answer += 1 i li if numpy.sqrt(i[0]**2 + i[1]**2) <= d:
    answer += 1 numpy.sqrt(i[0]**2 + i[1]**2) <= d numpy.sqrt(i[0]**2 + i[1]**2) numpy.sqrt numpy sqrt i[0]**2 + i[1]**2 i[0]**2 i[0] i 0 2 i[1]**2 i[1] i 1 2 d answer += 1 answer 1 print(answer) print answer n, d = map(int, input().split()) map(int, input().split()) n x, y = map(int,input().split()) map(int,input().split()) x answer = 0 0 answer y = map(int,input().split()) map(int,input().split()) y li = [] [] li answer += 1 1 answer d = map(int, input().split()) map(int, input().split()) d
# -*- coding: utf-8 -*-
import numpy
n, d = map(int, input().split())

li = []
for i in range(n):
  x, y = map(int,input().split())
  li.append([x, y])

answer = 0
for i in li:
  if numpy.sqrt(i[0]**2 + i[1]**2) <= d:
    answer += 1
print(answer)