n,d = map(int,input().split())
ans = 0
for i in range(n):
    x1,y1 = map(int,input().split())
    if(d*d >= x1*x1+y1*y1):
        ans += 1
print(ans) n,d = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d ans = 0 ans 0 for i in range(n):
    x1,y1 = map(int,input().split())
    if(d*d >= x1*x1+y1*y1):
        ans += 1 i range(n) range n x1,y1 = map(int,input().split()) x1 map(int,input().split()) map int input().split() ().split () input split y1 if(d*d >= x1*x1+y1*y1):
        ans += 1 d*d >= x1*x1+y1*y1 d*d d d x1*x1+y1*y1 x1*x1 x1 x1 y1*y1 y1 y1 ans += 1 ans 1 print(ans) print ans ans = 0 0 ans y1 = map(int,input().split()) map(int,input().split()) y1 n,d = map(int,input().split()) map(int,input().split()) n ans += 1 1 ans d = map(int,input().split()) map(int,input().split()) d x1,y1 = map(int,input().split()) map(int,input().split()) x1
n,d = map(int,input().split())
ans = 0
for i in range(n):
    x1,y1 = map(int,input().split())
    if(d*d >= x1*x1+y1*y1):
        ans += 1
print(ans)
