import numpy as np



n, d = list(map(int, input().split()))

x, y = np.array([list(map(int, input().split())) for _ in range(n)]).T



print((sum(x**2+y**2<=d**2)))
import numpy as np



n, d = list(map(int, input().split()))

x, y = np.array([list(map(int, input().split())) for _ in range(n)]).T



print(((x**2+y**2<=d**2).sum()))
import numpy as np

n, d = list(map(int, input().split()))
x, y = np.array([list(map(int, input().split())) for _ in range(n)]).T
print((sum(x**2 + y**2 <= d**2)))

import numpy as np

n, d = list(map(int, input().split()))
x, y = np.array([list(map(int, input().split())) for _ in range(n)]).T
print(((x**2 + y**2 <= d**2).sum()))

-print((sum(x**2 + y**2 <= d**2))) +print(((x**2 + y**2 <= d**2).sum()))