import numpy as np

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

cnt = 0

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

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

cnt = 0

for i in range(n):
    x,y = map(int,input().split())
    if np.sqrt(x**2+y**2) <= d:
        cnt += 1
print(cnt)