N, D = map(int, input().split())
X = list()
Y = list()
for i in range(N):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y)

count = 0
for i in range(N):
    if X[i] * X[i] + Y[i] * Y[i] <= D * D:
        count += 1

print(count) N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D X = list() X list() list Y = list() Y list() list for i in range(N):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y) i range(N) range N x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y X.append(x) X.append X append x Y.append(y) Y.append Y append y count = 0 count 0 for i in range(N):
    if X[i] * X[i] + Y[i] * Y[i] <= D * D:
        count += 1 i range(N) range N if X[i] * X[i] + Y[i] * Y[i] <= D * D:
        count += 1 X[i] * X[i] + Y[i] * Y[i] <= D * D X[i] * X[i] + Y[i] * Y[i] X[i] * X[i] X[i] X i X[i] X i Y[i] * Y[i] Y[i] Y i Y[i] Y i D * D D D count += 1 count 1 print(count) print count N, D = map(int, input().split()) map(int, input().split()) N D = map(int, input().split()) map(int, input().split()) D count = 0 0 count count += 1 1 count y = map(int, input().split()) map(int, input().split()) y X = list() list() X x, y = map(int, input().split()) map(int, input().split()) x Y = list() list() Y
N, D = map(int, input().split())
X = list()
Y = list()
for i in range(N):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y)

count = 0
for i in range(N):
    if X[i] * X[i] + Y[i] * Y[i] <= D * D:
        count += 1

print(count)
