n,d = map(int,input().split())
ans = 0
for _ in range(n) :
    x,y = map(int,input().split())
    distance = (x**2 + y**2)**0.5
    if distance <= d :
        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 _ in range(n) :
    x,y = map(int,input().split())
    distance = (x**2 + y**2)**0.5
    if distance <= d :
        ans += 1 _ range(n) range n x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y distance = (x**2 + y**2)**0.5 distance (x**2 + y**2)**0.5 x**2 + y**2 x**2 x 2 y**2 y 2 0.5 if distance <= d :
        ans += 1 distance <= d distance d ans += 1 ans 1 print(ans) print ans d = map(int,input().split()) map(int,input().split()) d x,y = map(int,input().split()) map(int,input().split()) x ans += 1 1 ans ans = 0 0 ans n,d = map(int,input().split()) map(int,input().split()) n y = map(int,input().split()) map(int,input().split()) y distance = (x**2 + y**2)**0.5 (x**2 + y**2)**0.5 distance
n,d = map(int,input().split())
ans = 0
for _ in range(n) :
    x,y = map(int,input().split())
    distance = (x**2 + y**2)**0.5
    if distance <= d :
        ans += 1
print(ans)