n , d = map(int, input().split())
x = []
y = []
for i  in range(n):
        a = list(map(int, (input().split())))
        x.append(a[0])
        y.append(a[1])

ans = 0
for i in  range(n):
        if (x[i] ** 2 + y[i] ** 2) ** (0.5)  <= d:
                ans += 1

print(ans) n , d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d x = [] x [] y = [] y [] for i  in range(n):
        a = list(map(int, (input().split())))
        x.append(a[0])
        y.append(a[1]) i range(n) range n a = list(map(int, (input().split()))) a list(map(int, (input().split()))) list map(int, (input().split())) map int input().split() ().split () input split x.append(a[0]) x.append x append a[0] a 0 y.append(a[1]) y.append y append a[1] a 1 ans = 0 ans 0 for i in  range(n):
        if (x[i] ** 2 + y[i] ** 2) ** (0.5)  <= d:
                ans += 1 i range(n) range n if (x[i] ** 2 + y[i] ** 2) ** (0.5)  <= d:
                ans += 1 (x[i] ** 2 + y[i] ** 2) ** (0.5)  <= d (x[i] ** 2 + y[i] ** 2) ** (0.5) x[i] ** 2 + y[i] ** 2 x[i] ** 2 x[i] x i 2 y[i] ** 2 y[i] y i 2 0.5 d ans += 1 ans 1 print(ans) print ans y = [] [] y x = [] [] x a = list(map(int, (input().split()))) list(map(int, (input().split()))) a n , d = map(int, input().split()) map(int, input().split()) n ans = 0 0 ans d = map(int, input().split()) map(int, input().split()) d ans += 1 1 ans
n , d = map(int, input().split())
x = []
y = []
for i  in range(n):
        a = list(map(int, (input().split())))
        x.append(a[0])
        y.append(a[1])

ans = 0
for i in  range(n):
        if (x[i] ** 2 + y[i] ** 2) ** (0.5)  <= d:
                ans += 1

print(ans)