n, d = map(int, input().split())
xy = []
for i in range(n):
    xy.append(list(map(int, input().split())))
cnt = 0
for i in range(n):
    if (xy[i][0]**2 + xy[i][1]**2) <= d**2:
        cnt += 1
print(cnt) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d xy = [] xy [] for i in range(n):
    xy.append(list(map(int, input().split()))) 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 cnt = 0 cnt 0 for i in range(n):
    if (xy[i][0]**2 + xy[i][1]**2) <= d**2:
        cnt += 1 i range(n) range n if (xy[i][0]**2 + xy[i][1]**2) <= d**2:
        cnt += 1 (xy[i][0]**2 + xy[i][1]**2) <= d**2 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 d**2 d 2 cnt += 1 cnt 1 print(cnt) print cnt cnt = 0 0 cnt n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d cnt += 1 1 cnt xy = [] [] xy
n, d = map(int, input().split())
xy = []
for i in range(n):
    xy.append(list(map(int, input().split())))
cnt = 0
for i in range(n):
    if (xy[i][0]**2 + xy[i][1]**2) <= d**2:
        cnt += 1
print(cnt)