n, d = map(int, input().split())
ans = 0
for i in range(n):
    x, y = map(int, input().split())
    if abs(x) <= d or abs(y) <= d:
        if x * x + y * y <= d * d:
            ans += 1
print(ans) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d ans = 0 ans 0 for i in range(n):
    x, y = map(int, input().split())
    if abs(x) <= d or abs(y) <= d:
        if x * x + y * y <= d * d:
            ans += 1 i range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y if abs(x) <= d or abs(y) <= d:
        if x * x + y * y <= d * d:
            ans += 1 abs(x) <= d or abs(y) <= d abs(x) <= d abs(x) abs x d abs(y) <= d abs(y) abs y d if x * x + y * y <= d * d:
            ans += 1 x * x + y * y <= d * d x * x + y * y x * x x x y * y y y d * d d d ans += 1 ans 1 print(ans) print ans ans = 0 0 ans y = map(int, input().split()) map(int, input().split()) y d = map(int, input().split()) map(int, input().split()) d n, d = map(int, input().split()) map(int, input().split()) n x, y = map(int, input().split()) map(int, input().split()) x ans += 1 1 ans
n, d = map(int, input().split())
ans = 0
for i in range(n):
    x, y = map(int, input().split())
    if abs(x) <= d or abs(y) <= d:
        if x * x + y * y <= d * d:
            ans += 1
print(ans)
