import numpy as np

N, D = map(int,input().split())

count = 0
for _ in range(N):
	x,y = map(int,input().split())
	distance = np.sqrt(x**2 + y**2)
	if distance <= D:
		count += 1

print(count) import numpy as np numpy N, D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D count = 0 count 0 for _ in range(N):
	x,y = map(int,input().split())
	distance = np.sqrt(x**2 + y**2)
	if distance <= D:
		count += 1 _ range(N) range N x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y distance = np.sqrt(x**2 + y**2) distance np.sqrt(x**2 + y**2) np.sqrt np sqrt x**2 + y**2 x**2 x 2 y**2 y 2 if distance <= D:
		count += 1 distance <= D distance D count += 1 count 1 print(count) print count D = map(int,input().split()) map(int,input().split()) D x,y = map(int,input().split()) map(int,input().split()) x N, D = map(int,input().split()) map(int,input().split()) N count += 1 1 count count = 0 0 count y = map(int,input().split()) map(int,input().split()) y distance = np.sqrt(x**2 + y**2) np.sqrt(x**2 + y**2) distance
import numpy as np

N, D = map(int,input().split())

count = 0
for _ in range(N):
	x,y = map(int,input().split())
	distance = np.sqrt(x**2 + y**2)
	if distance <= D:
		count += 1

print(count)
