N, D = map(int, input().split())
ans = 0

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

for  i in range(N):
    x, y = map(int, input().split())
    d = (x**2 + y**2) ** 0.5
    if d <= D:
        ans += 1

print(ans)