N, D = map(int, input().split())
D = D*D
count = 0
for i in range(N):
  P = list(map(int, input().split()))
  dis = P[0]*P[0] + P[1]*P[1]
  if dis <= D:
    count += 1
print(count) N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D D = D*D D D*D D D count = 0 count 0 for i in range(N):
  P = list(map(int, input().split()))
  dis = P[0]*P[0] + P[1]*P[1]
  if dis <= D:
    count += 1 i range(N) range N P = list(map(int, input().split())) P list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split dis = P[0]*P[0] + P[1]*P[1] dis P[0]*P[0] + P[1]*P[1] P[0]*P[0] P[0] P 0 P[0] P 0 P[1]*P[1] P[1] P 1 P[1] P 1 if dis <= D:
    count += 1 dis <= D dis D count += 1 count 1 print(count) print count P = list(map(int, input().split())) list(map(int, input().split())) P count = 0 0 count N, D = map(int, input().split()) map(int, input().split()) N D = D*D D*D D D = map(int, input().split()) map(int, input().split()) D dis = P[0]*P[0] + P[1]*P[1] P[0]*P[0] + P[1]*P[1] dis count += 1 1 count
N, D = map(int, input().split())
D = D*D
count = 0
for i in range(N):
  P = list(map(int, input().split()))
  dis = P[0]*P[0] + P[1]*P[1]
  if dis <= D:
    count += 1
print(count)
