import numpy as np
count = 0
n, d = map(int, input().split())
for _ in range(n):
    x, y = map(int, input().split())
    if np.sqrt(x**2 + y**2) <= d:
        count +=1
print(count) import numpy as np numpy count = 0 count 0 n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d for _ in range(n):
    x, y = map(int, input().split())
    if np.sqrt(x**2 + y**2) <= d:
        count +=1 _ range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y if np.sqrt(x**2 + y**2) <= d:
        count +=1 np.sqrt(x**2 + y**2) <= d np.sqrt(x**2 + y**2) np.sqrt np sqrt x**2 + y**2 x**2 x 2 y**2 y 2 d count +=1 count 1 print(count) print count count = 0 0 count x, y = map(int, input().split()) map(int, input().split()) x count +=1 1 count y = map(int, input().split()) map(int, input().split()) y d = map(int, input().split()) map(int, input().split()) d n, d = map(int, input().split()) map(int, input().split()) n
import numpy as np
count = 0
n, d = map(int, input().split())
for _ in range(n):
    x, y = map(int, input().split())
    if np.sqrt(x**2 + y**2) <= d:
        count +=1
print(count)