n, d = map(int, input().split(" "))
p = []
ans = 0
for i in range(n):
    p.append(list(map(int, input().split(" "))))

for i, [x, y] in enumerate(p):
    if(x > d or y > d):
        continue
    if(x**2 + y**2 <= d**2):
        ans += 1


print(ans) n, d = map(int, input().split(" ")) n map(int, input().split(" ")) map int input().split(" ") ().split () input split " " d p = [] p [] ans = 0 ans 0 for i in range(n):
    p.append(list(map(int, input().split(" ")))) i range(n) range n p.append(list(map(int, input().split(" ")))) p.append p append list(map(int, input().split(" "))) list map(int, input().split(" ")) map int input().split(" ") ().split () input split " " for i, [x, y] in enumerate(p):
    if(x > d or y > d):
        continue
    if(x**2 + y**2 <= d**2):
        ans += 1 i [x, y] x y enumerate(p) enumerate p if(x > d or y > d):
        continue
     x > d or y > d x > d x d y > d y d continue if(x**2 + y**2 <= d**2):
        ans += 1 x**2 + y**2 <= d**2 x**2 + y**2 x**2 x 2 y**2 y 2 d**2 d 2 ans += 1 ans 1 print(ans) print ans p = [] [] p ans = 0 0 ans n, d = map(int, input().split(" ")) map(int, input().split(" ")) n d = map(int, input().split(" ")) map(int, input().split(" ")) d ans += 1 1 ans
n, d = map(int, input().split(" "))
p = []
ans = 0
for i in range(n):
    p.append(list(map(int, input().split(" "))))

for i, [x, y] in enumerate(p):
    if(x > d or y > d):
        continue
    if(x**2 + y**2 <= d**2):
        ans += 1


print(ans)