firstLine = input()
numOfPoints, limitDisatnce = list(map(int,firstLine.split(' ')))[0], list(map(int,firstLine.split(' ')))[1]
points = []
for i in range(0, numOfPoints):
  cordinate = list(map(int,input().split(' ')))
  points.append(cordinate)

count = 0
for i in range(0, len(points)):
  distance = (points[i][0] ** 2) + (points[i][1] ** 2)
  if (limitDisatnce ** 2) >= distance:
    count = count + 1

print(count) firstLine = input() firstLine input() input numOfPoints, limitDisatnce = list(map(int,firstLine.split(' ')))[0], list(map(int,firstLine.split(' ')))[1] numOfPoints list(map(int,firstLine.split(' ')))[0] (map(int,firstLine.split(' '))) list map(int,firstLine.split(' ')) map int firstLine.split(' ') firstLine.split firstLine split ' ' 0 limitDisatnce list(map(int,firstLine.split(' ')))[1] (map(int,firstLine.split(' '))) list map(int,firstLine.split(' ')) map int firstLine.split(' ') firstLine.split firstLine split ' ' 1 points = [] points [] for i in range(0, numOfPoints):
  cordinate = list(map(int,input().split(' ')))
  points.append(cordinate) i range(0, numOfPoints) range 0 numOfPoints cordinate = list(map(int,input().split(' '))) cordinate list(map(int,input().split(' '))) list map(int,input().split(' ')) map int input().split(' ') ().split () input split ' ' points.append(cordinate) points.append points append cordinate count = 0 count 0 for i in range(0, len(points)):
  distance = (points[i][0] ** 2) + (points[i][1] ** 2)
  if (limitDisatnce ** 2) >= distance:
    count = count + 1 i range(0, len(points)) range 0 len(points) len points distance = (points[i][0] ** 2) + (points[i][1] ** 2) distance (points[i][0] ** 2) + (points[i][1] ** 2) points[i][0] ** 2 points[i][0] [i] points i 0 2 points[i][1] ** 2 points[i][1] [i] points i 1 2 if (limitDisatnce ** 2) >= distance:
    count = count + 1 (limitDisatnce ** 2) >= distance limitDisatnce ** 2 limitDisatnce 2 distance count = count + 1 count count + 1 count 1 print(count) print count count = count + 1 count + 1 count points = [] [] points cordinate = list(map(int,input().split(' '))) list(map(int,input().split(' '))) cordinate count = 0 0 count numOfPoints, limitDisatnce = list(map(int,firstLine.split(' ')))[0], list(map(int,firstLine.split(' ')))[1] list(map(int,firstLine.split(' ')))[0] numOfPoints firstLine = input() input() firstLine limitDisatnce = list(map(int,firstLine.split(' ')))[0], list(map(int,firstLine.split(' ')))[1] list(map(int,firstLine.split(' ')))[1] limitDisatnce distance = (points[i][0] ** 2) + (points[i][1] ** 2) (points[i][0] ** 2) + (points[i][1] ** 2) distance
firstLine = input()
numOfPoints, limitDisatnce = list(map(int,firstLine.split(' ')))[0], list(map(int,firstLine.split(' ')))[1]
points = []
for i in range(0, numOfPoints):
  cordinate = list(map(int,input().split(' ')))
  points.append(cordinate)

count = 0
for i in range(0, len(points)):
  distance = (points[i][0] ** 2) + (points[i][1] ** 2)
  if (limitDisatnce ** 2) >= distance:
    count = count + 1

print(count)