n, d = map(int, input().split())
x = [0 for i in range(n)]
y = [0 for i in range(n)]
for i in range(n):
    x[i],y[i] = map(int, input().split())
cnt = 0
for i in range(n):
    dis = x[i]*x[i] + y[i]*y[i]
    if(dis<=d*d):
        cnt+=1
print(cnt) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d 0 for i in range(n) for i in range(n) i range(n) range n for i in range(n) 0 x = [0 for i in range(n)] x [0 for i in range(n)] 0 for i in range(n) for i in range(n) i range(n) range n for i in range(n) 0 y = [0 for i in range(n)] y [0 for i in range(n)] for i in range(n):
    x[i],y[i] = map(int, input().split()) i range(n) range n x[i],y[i] = map(int, input().split()) x[i] x i map(int, input().split()) map int input().split() ().split () input split y[i] y i cnt = 0 cnt 0 for i in range(n):
    dis = x[i]*x[i] + y[i]*y[i]
    if(dis<=d*d):
        cnt+=1 i range(n) range n dis = x[i]*x[i] + y[i]*y[i] dis x[i]*x[i] + y[i]*y[i] x[i]*x[i] x[i] x i x[i] x i y[i]*y[i] y[i] y i y[i] y i if(dis<=d*d):
        cnt+=1 dis<=d*d dis d*d d d cnt+=1 cnt 1 print(cnt) print cnt n, d = map(int, input().split()) map(int, input().split()) n y = [0 for i in range(n)] [0 for i in range(n)] y cnt = 0 0 cnt dis = x[i]*x[i] + y[i]*y[i] x[i]*x[i] + y[i]*y[i] dis d = map(int, input().split()) map(int, input().split()) d x = [0 for i in range(n)] [0 for i in range(n)] x cnt+=1 1 cnt
n, d = map(int, input().split())
x = [0 for i in range(n)]
y = [0 for i in range(n)]
for i in range(n):
    x[i],y[i] = map(int, input().split())
cnt = 0
for i in range(n):
    dis = x[i]*x[i] + y[i]*y[i]
    if(dis<=d*d):
        cnt+=1
print(cnt)