line = input().split()
number = int(line[0])
distance = int(line[1])
import math
cnt =0
for i in range(number):
  position = input().split()
  x = int(position[0])
  y = int(position[1])
  origin_dis = math.sqrt(x*x+y*y)
  if origin_dis <=distance:
    cnt +=1
print(cnt) line = input().split() line input().split() ().split () input split number = int(line[0]) number int(line[0]) int line[0] line 0 distance = int(line[1]) distance int(line[1]) int line[1] line 1 import math math cnt =0 cnt 0 for i in range(number):
  position = input().split()
  x = int(position[0])
  y = int(position[1])
  origin_dis = math.sqrt(x*x+y*y)
  if origin_dis <=distance:
    cnt +=1 i range(number) range number position = input().split() position input().split() ().split () input split x = int(position[0]) x int(position[0]) int position[0] position 0 y = int(position[1]) y int(position[1]) int position[1] position 1 origin_dis = math.sqrt(x*x+y*y) origin_dis math.sqrt(x*x+y*y) math.sqrt math sqrt x*x+y*y x*x x x y*y y y if origin_dis <=distance:
    cnt +=1 origin_dis <=distance origin_dis distance cnt +=1 cnt 1 print(cnt) print cnt y = int(position[1]) int(position[1]) y x = int(position[0]) int(position[0]) x line = input().split() input().split() line cnt =0 0 cnt cnt +=1 1 cnt number = int(line[0]) int(line[0]) number origin_dis = math.sqrt(x*x+y*y) math.sqrt(x*x+y*y) origin_dis distance = int(line[1]) int(line[1]) distance position = input().split() input().split() position
line = input().split()
number = int(line[0])
distance = int(line[1])
import math
cnt =0
for i in range(number):
  position = input().split()
  x = int(position[0])
  y = int(position[1])
  origin_dis = math.sqrt(x*x+y*y)
  if origin_dis <=distance:
    cnt +=1
print(cnt)