import math
count = 0
n,d = (int(x) for x in input().split())

for i in range(n):
  x,y = (int(x) for x in input().split())
  result = math.sqrt(x * x + y * y) 
  if result <= d:
    count += 1

print(count) import math math count = 0 count 0 int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n,d = (int(x) for x in input().split()) n (int(x) for x in input().split()) d for i in range(n):
  x,y = (int(x) for x in input().split())
  result = math.sqrt(x * x + y * y) 
  if result <= d:
    count += 1 i range(n) range n int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x x,y = (int(x) for x in input().split()) x (int(x) for x in input().split()) y result = math.sqrt(x * x + y * y) result math.sqrt(x * x + y * y) math.sqrt math sqrt x * x + y * y x * x x x y * y y y if result <= d:
    count += 1 result <= d result d count += 1 count 1 print(count) print count count = 0 0 count count += 1 1 count d = (int(x) for x in input().split()) (int(x) for x in input().split()) d x,y = (int(x) for x in input().split()) (int(x) for x in input().split()) x y = (int(x) for x in input().split()) (int(x) for x in input().split()) y result = math.sqrt(x * x + y * y) math.sqrt(x * x + y * y) result n,d = (int(x) for x in input().split()) (int(x) for x in input().split()) n
import math
count = 0
n,d = (int(x) for x in input().split())

for i in range(n):
  x,y = (int(x) for x in input().split())
  result = math.sqrt(x * x + y * y) 
  if result <= d:
    count += 1

print(count)