nd = input().split()
N = int(nd[0])
D = int(nd[1])
D = D**2

ans = 0

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

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

ans = 0

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

print(ans)
