n = input()
n = n.split()
d = int(n[1])
n = int(n[0])
c = 0
for a in range(n):
    b = input()
    b = b.split()
    x = int(b[0])
    y = int(b[1])
    if x * x + y * y <= d * d:
        c = c + 1
print(c) n = input() n input() input n = n.split() n n.split() n.split n split d = int(n[1]) d int(n[1]) int n[1] n 1 n = int(n[0]) n int(n[0]) int n[0] n 0 c = 0 c 0 for a in range(n):
    b = input()
    b = b.split()
    x = int(b[0])
    y = int(b[1])
    if x * x + y * y <= d * d:
        c = c + 1 a range(n) range n b = input() b input() input b = b.split() b b.split() b.split b split x = int(b[0]) x int(b[0]) int b[0] b 0 y = int(b[1]) y int(b[1]) int b[1] b 1 if x * x + y * y <= d * d:
        c = c + 1 x * x + y * y <= d * d x * x + y * y x * x x x y * y y y d * d d d c = c + 1 c c + 1 c 1 print(c) print c d = int(n[1]) int(n[1]) d x = int(b[0]) int(b[0]) x n = n.split() n.split() n n = int(n[0]) int(n[0]) n c = 0 0 c c = c + 1 c + 1 c b = b.split() b.split() b b = input() input() b n = input() input() n y = int(b[1]) int(b[1]) y
n = input()
n = n.split()
d = int(n[1])
n = int(n[0])
c = 0
for a in range(n):
    b = input()
    b = b.split()
    x = int(b[0])
    y = int(b[1])
    if x * x + y * y <= d * d:
        c = c + 1
print(c)