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