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