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