n, d = map(int,input().split())
ans =0
for i in range(n):
    x, y = map(int,input().split())
    if pow((x**2+y**2),0.5)<=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):
    x, y = map(int,input().split())
    if pow((x**2+y**2),0.5)<=d:
        ans += 1 i range(n) range n x, y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y if pow((x**2+y**2),0.5)<=d:
        ans += 1 pow((x**2+y**2),0.5)<=d pow((x**2+y**2),0.5) pow x**2+y**2 x**2 x 2 y**2 y 2 0.5 d ans += 1 ans 1 print(ans) print ans ans =0 0 ans x, y = map(int,input().split()) map(int,input().split()) x n, d = map(int,input().split()) map(int,input().split()) n d = map(int,input().split()) map(int,input().split()) d y = map(int,input().split()) map(int,input().split()) y ans += 1 1 ans
n, d = map(int,input().split())
ans =0
for i in range(n):
    x, y = map(int,input().split())
    if pow((x**2+y**2),0.5)<=d:
        ans += 1

print(ans)