N,D = map(int,input().split())
ans = 0
for i in range(N):
    X1,Y1 = map(int,input().split())
    if X1*X1+Y1*Y1 <= D*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 i in range(N):
    X1,Y1 = map(int,input().split())
    if X1*X1+Y1*Y1 <= D*D:
        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 X1*X1+Y1*Y1 <= D*D:
        ans += 1 X1*X1+Y1*Y1 <= D*D X1*X1+Y1*Y1 X1*X1 X1 X1 Y1*Y1 Y1 Y1 D*D D D ans += 1 ans 1 print(ans) print ans X1,Y1 = map(int,input().split()) map(int,input().split()) X1 ans += 1 1 ans N,D = map(int,input().split()) map(int,input().split()) N D = map(int,input().split()) map(int,input().split()) D ans = 0 0 ans Y1 = map(int,input().split()) map(int,input().split()) Y1
N,D = map(int,input().split())
ans = 0
for i in range(N):
    X1,Y1 = map(int,input().split())
    if X1*X1+Y1*Y1 <= D*D:
        ans += 1
print(ans)