r=input().split()
N=int(r[0])
D=int(r[1])
ans=0
d=[input().split() for i in range(N)]
for i in range(N):
    if int(d[i][1])**2+int(d[i][0])**2<=D**2:
        ans+=1
print(ans) r=input().split() r input().split() ().split () input split N=int(r[0]) N int(r[0]) int r[0] r 0 D=int(r[1]) D int(r[1]) int r[1] r 1 ans=0 ans 0 input().split() for i in range(N) for i in range(N) i range(N) range N for i in range(N) input().split() ().split () input split d=[input().split() for i in range(N)] d [input().split() for i in range(N)] for i in range(N):
    if int(d[i][1])**2+int(d[i][0])**2<=D**2:
        ans+=1 i range(N) range N if int(d[i][1])**2+int(d[i][0])**2<=D**2:
        ans+=1 int(d[i][1])**2+int(d[i][0])**2<=D**2 int(d[i][1])**2+int(d[i][0])**2 int(d[i][1])**2 int(d[i][1]) int d[i][1] [i] d i 1 2 int(d[i][0])**2 int(d[i][0]) int d[i][0] [i] d i 0 2 D**2 D 2 ans+=1 ans 1 print(ans) print ans ans=0 0 ans ans+=1 1 ans r=input().split() input().split() r N=int(r[0]) int(r[0]) N D=int(r[1]) int(r[1]) D d=[input().split() for i in range(N)] [input().split() for i in range(N)] d
r=input().split()
N=int(r[0])
D=int(r[1])
ans=0
d=[input().split() for i in range(N)]
for i in range(N):
    if int(d[i][1])**2+int(d[i][0])**2<=D**2:
        ans+=1
print(ans)