import math
N, D = map(int, input().split())
P = [list(map(int,input().split())) for i in range(N)]

cnt = 0
for i in range(N):
    d = math.sqrt(int(P[i][0])**2 + int(P[i][1])**2)
    if d <= D:
        cnt += 1

print(cnt) 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 i in range(N) for i in range(N) i range(N) range N for i in range(N) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split P = [list(map(int,input().split())) for i in range(N)] P [list(map(int,input().split())) for i in range(N)] cnt = 0 cnt 0 for i in range(N):
    d = math.sqrt(int(P[i][0])**2 + int(P[i][1])**2)
    if d <= D:
        cnt += 1 i range(N) range N d = math.sqrt(int(P[i][0])**2 + int(P[i][1])**2) d math.sqrt(int(P[i][0])**2 + int(P[i][1])**2) math.sqrt math sqrt int(P[i][0])**2 + int(P[i][1])**2 int(P[i][0])**2 int(P[i][0]) int P[i][0] [i] P i 0 2 int(P[i][1])**2 int(P[i][1]) int P[i][1] [i] P i 1 2 if d <= D:
        cnt += 1 d <= D d D cnt += 1 cnt 1 print(cnt) print cnt N, D = map(int, input().split()) map(int, input().split()) N cnt += 1 1 cnt d = math.sqrt(int(P[i][0])**2 + int(P[i][1])**2) math.sqrt(int(P[i][0])**2 + int(P[i][1])**2) d P = [list(map(int,input().split())) for i in range(N)] [list(map(int,input().split())) for i in range(N)] P cnt = 0 0 cnt D = map(int, input().split()) map(int, input().split()) D
import math
N, D = map(int, input().split())
P = [list(map(int,input().split())) for i in range(N)]

cnt = 0
for i in range(N):
    d = math.sqrt(int(P[i][0])**2 + int(P[i][1])**2)
    if d <= D:
        cnt += 1

print(cnt)