import math

nd = list(map(int,input().split(" ")))
n = nd[0]
d = nd[1]
cnt = 0


xy=[]
for i in range(n):
    xy.append(list(map(int,input().split(" "))))
    result = math.sqrt((xy[i][0]**2)+(xy[i][1]**2))
    if result <= d:
        cnt += 1

print(cnt) import math math nd = list(map(int,input().split(" "))) nd list(map(int,input().split(" "))) list map(int,input().split(" ")) map int input().split(" ") ().split () input split " " n = nd[0] n nd[0] nd 0 d = nd[1] d nd[1] nd 1 cnt = 0 cnt 0 xy=[] xy [] for i in range(n):
    xy.append(list(map(int,input().split(" "))))
    result = math.sqrt((xy[i][0]**2)+(xy[i][1]**2))
    if result <= d:
        cnt += 1 i range(n) range n xy.append(list(map(int,input().split(" ")))) xy.append xy append list(map(int,input().split(" "))) list map(int,input().split(" ")) map int input().split(" ") ().split () input split " " result = math.sqrt((xy[i][0]**2)+(xy[i][1]**2)) result math.sqrt((xy[i][0]**2)+(xy[i][1]**2)) math.sqrt math sqrt (xy[i][0]**2)+(xy[i][1]**2) xy[i][0]**2 xy[i][0] [i] xy i 0 2 xy[i][1]**2 xy[i][1] [i] xy i 1 2 if result <= d:
        cnt += 1 result <= d result d cnt += 1 cnt 1 print(cnt) print cnt d = nd[1] nd[1] d nd = list(map(int,input().split(" "))) list(map(int,input().split(" "))) nd n = nd[0] nd[0] n cnt = 0 0 cnt cnt += 1 1 cnt xy=[] [] xy result = math.sqrt((xy[i][0]**2)+(xy[i][1]**2)) math.sqrt((xy[i][0]**2)+(xy[i][1]**2)) result
import math

nd = list(map(int,input().split(" ")))
n = nd[0]
d = nd[1]
cnt = 0


xy=[]
for i in range(n):
    xy.append(list(map(int,input().split(" "))))
    result = math.sqrt((xy[i][0]**2)+(xy[i][1]**2))
    if result <= d:
        cnt += 1

print(cnt)