n, d = map(int, input().split())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
ans = 0
d = d ** 2

for i in range(n):
    if ( x[i] ** 2 + y[i] ** 2 ) <= d:
        ans += 1

print(ans) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d map(int, input().split()) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) map(int, input().split()) map int input().split() ().split () input split xy = [map(int, input().split()) for _ in range(n)] xy [map(int, input().split()) for _ in range(n)] list(i) for i in zip(*xy) for i in zip(*xy) i zip(*xy) zip *xy xy for i in zip(*xy) list(i) list i x, y = [list(i) for i in zip(*xy)] x [list(i) for i in zip(*xy)] y ans = 0 ans 0 d = d ** 2 d d ** 2 d 2 for i in range(n):
    if ( x[i] ** 2 + y[i] ** 2 ) <= d:
        ans += 1 i range(n) range n if ( x[i] ** 2 + y[i] ** 2 ) <= d:
        ans += 1 ( x[i] ** 2 + y[i] ** 2 ) <= d x[i] ** 2 + y[i] ** 2 x[i] ** 2 x[i] x i 2 y[i] ** 2 y[i] y i 2 d ans += 1 ans 1 print(ans) print ans x, y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] x ans = 0 0 ans ans += 1 1 ans n, d = map(int, input().split()) map(int, input().split()) n d = d ** 2 d ** 2 d d = map(int, input().split()) map(int, input().split()) d xy = [map(int, input().split()) for _ in range(n)] [map(int, input().split()) for _ in range(n)] xy y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] y
n, d = map(int, input().split())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
ans = 0
d = d ** 2

for i in range(n):
    if ( x[i] ** 2 + y[i] ** 2 ) <= d:
        ans += 1

print(ans)