N,D = map(int, input().split())
XY_s = [list(map(int,input().split())) for _ in range(N)]
D**=2
answer = 0
for i in range(N):
    if D >= XY_s[i][0]**2 + XY_s[i][1]**2:
        answer+=1
print(answer) N,D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D list(map(int,input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split XY_s = [list(map(int,input().split())) for _ in range(N)] XY_s [list(map(int,input().split())) for _ in range(N)] D**=2 D 2 answer = 0 answer 0 for i in range(N):
    if D >= XY_s[i][0]**2 + XY_s[i][1]**2:
        answer+=1 i range(N) range N if D >= XY_s[i][0]**2 + XY_s[i][1]**2:
        answer+=1 D >= XY_s[i][0]**2 + XY_s[i][1]**2 D XY_s[i][0]**2 + XY_s[i][1]**2 XY_s[i][0]**2 XY_s[i][0] [i] XY_s i 0 2 XY_s[i][1]**2 XY_s[i][1] [i] XY_s i 1 2 answer+=1 answer 1 print(answer) print answer answer+=1 1 answer D = map(int, input().split()) map(int, input().split()) D D**=2 2 D answer = 0 0 answer XY_s = [list(map(int,input().split())) for _ in range(N)] [list(map(int,input().split())) for _ in range(N)] XY_s N,D = map(int, input().split()) map(int, input().split()) N
N,D = map(int, input().split())
XY_s = [list(map(int,input().split())) for _ in range(N)]
D**=2
answer = 0
for i in range(N):
    if D >= XY_s[i][0]**2 + XY_s[i][1]**2:
        answer+=1
print(answer)