import math

N,D = map(int,input().split())
xy = [list(map(int,input().split())) for xy in range(N)]
kosuu = 0;
for i in xy:
    if math.sqrt(i[0]**2+i[1]**2) <= D:
        kosuu+=1
print(kosuu) import math math N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D list(map(int,input().split())) for xy in range(N) for xy in range(N) xy range(N) range N for xy in range(N) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split xy = [list(map(int,input().split())) for xy in range(N)] xy [list(map(int,input().split())) for xy in range(N)] kosuu = 0 kosuu 0 for i in xy:
    if math.sqrt(i[0]**2+i[1]**2) <= D:
        kosuu+=1 i xy if math.sqrt(i[0]**2+i[1]**2) <= D:
        kosuu+=1 math.sqrt(i[0]**2+i[1]**2) <= D math.sqrt(i[0]**2+i[1]**2) math.sqrt math sqrt i[0]**2+i[1]**2 i[0]**2 i[0] i 0 2 i[1]**2 i[1] i 1 2 D kosuu+=1 kosuu 1 print(kosuu) print kosuu kosuu+=1 1 kosuu D = map(int,input().split()) map(int,input().split()) D xy = [list(map(int,input().split())) for xy in range(N)] [list(map(int,input().split())) for xy in range(N)] xy N,D = map(int,input().split()) map(int,input().split()) N kosuu = 0 0 kosuu
import math

N,D = map(int,input().split())
xy = [list(map(int,input().split())) for xy in range(N)]
kosuu = 0;
for i in xy:
    if math.sqrt(i[0]**2+i[1]**2) <= D:
        kosuu+=1
print(kosuu)