import numpy as np

count = 0
n,d = map(int,input().split())

for _ in range(n):
    p,q = map(int, input().split())
    if np.sqrt(p**2+q**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):
    p,q = map(int, input().split())
    if np.sqrt(p**2+q**2) <= d:
        count += 1 _ range(n) range n p,q = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q if np.sqrt(p**2+q**2) <= d:
        count += 1 np.sqrt(p**2+q**2) <= d np.sqrt(p**2+q**2) np.sqrt np sqrt p**2+q**2 p**2 p 2 q**2 q 2 d count += 1 count 1 print(count) print count n,d = map(int,input().split()) map(int,input().split()) n d = map(int,input().split()) map(int,input().split()) d p,q = map(int, input().split()) map(int, input().split()) p q = map(int, input().split()) map(int, input().split()) q count += 1 1 count count = 0 0 count
import numpy as np

count = 0
n,d = map(int,input().split())

for _ in range(n):
    p,q = map(int, input().split())
    if np.sqrt(p**2+q**2) <= d:
        count += 1
print(count)