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

cnt = 0

for _ in range(N):
    X,Y = map(int, input().split())
    cnt += X*X + Y*Y <= D*D

print(cnt) N,D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D cnt = 0 cnt 0 for _ in range(N):
    X,Y = map(int, input().split())
    cnt += X*X + Y*Y <= D*D _ range(N) range N X,Y = map(int, input().split()) X map(int, input().split()) map int input().split() ().split () input split Y cnt += X*X + Y*Y <= D*D cnt X*X + Y*Y <= D*D X*X + Y*Y X*X X X Y*Y Y Y D*D D D print(cnt) print cnt cnt = 0 0 cnt X,Y = map(int, input().split()) map(int, input().split()) X N,D = map(int, input().split()) map(int, input().split()) N cnt += X*X + Y*Y <= D*D X*X + Y*Y <= D*D cnt D = map(int, input().split()) map(int, input().split()) D Y = map(int, input().split()) map(int, input().split()) Y
N,D = map(int, input().split())

cnt = 0

for _ in range(N):
    X,Y = map(int, input().split())
    cnt += X*X + Y*Y <= D*D

print(cnt)