n,d = map(int, input().split())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]

ans=0
for i in range(n):
    if x[i]**2+y[i]**2<=d**2:
        ans+=1

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

ans=0
for i in range(n):
    if x[i]**2+y[i]**2<=d**2:
        ans+=1

print(ans)