n, d = map(int, input().split())

d **= 2
print(
    len(list(
        filter(lambda l: l[0]**2 + l[1]**2 <= d, 
               [[int(k) for k in input().split()] for i in range(n)]
        )
    ))
) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d d **= 2 d 2 [int(k) for k in input().split()] for i in range(n) for i in range(n) i range(n) range n for i in range(n) [int(k) for k in input().split()] print(
    len(list(
        filter(lambda l: l[0]**2 + l[1]**2 <= d, 
               [[int(k) for k in input().split()] for i in range(n)]
        )
    ))
) print len(list(
        filter(lambda l: l[0]**2 + l[1]**2 <= d, 
               [[int(k) for k in input().split()] for i in range(n)]
        )
    )) len list(
        filter(lambda l: l[0]**2 + l[1]**2 <= d, 
               [[int(k) for k in input().split()] for i in range(n)]
        )
    ) list filter(lambda l: l[0]**2 + l[1]**2 <= d, 
               [[int(k) for k in input().split()] for i in range(n)]
        ) filter lambda l: l[0]**2 + l[1]**2 <= d l[0]**2 + l[1]**2 <= d l[0]**2 + l[1]**2 l[0]**2 l[0] l 0 2 l[1]**2 l[1] l 1 2 d l [[int(k) for k in input().split()] for i in range(n)] d **= 2 2 d n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d
n, d = map(int, input().split())

d **= 2
print(
    len(list(
        filter(lambda l: l[0]**2 + l[1]**2 <= d, 
               [[int(k) for k in input().split()] for i in range(n)]
        )
    ))
)
