N, D = map(int,input().split())
cnt = 0
for i in range(N):
    X,Y = map(int,input().split())
    S = (X**2+Y**2)**0.5
    if S <= D:
        cnt += 1
    else:
        continue
print(cnt) N, D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D cnt = 0 cnt 0 for i in range(N):
    X,Y = map(int,input().split())
    S = (X**2+Y**2)**0.5
    if S <= D:
        cnt += 1
    else:
        continue i range(N) range N X,Y = map(int,input().split()) X map(int,input().split()) map int input().split() ().split () input split Y S = (X**2+Y**2)**0.5 S (X**2+Y**2)**0.5 X**2+Y**2 X**2 X 2 Y**2 Y 2 0.5 if S <= D:
        cnt += 1
    else:
        continue S <= D S D cnt += 1 cnt 1 continue print(cnt) print cnt D = map(int,input().split()) map(int,input().split()) D N, D = map(int,input().split()) map(int,input().split()) N Y = map(int,input().split()) map(int,input().split()) Y cnt = 0 0 cnt X,Y = map(int,input().split()) map(int,input().split()) X S = (X**2+Y**2)**0.5 (X**2+Y**2)**0.5 S cnt += 1 1 cnt
N, D = map(int,input().split())
cnt = 0
for i in range(N):
    X,Y = map(int,input().split())
    S = (X**2+Y**2)**0.5
    if S <= D:
        cnt += 1
    else:
        continue
print(cnt)
