from sys import stdin

N, D = map(int, input().split())
points = []
for i in range(N):
    X, Y = map(int, stdin.readline()[:-1].split())
    points.append((X, Y))

count = 0
for i in range(N):
    X, Y = points[i]
    d = (X**2 + Y**2) ** 0.5
    if d <= D:
        count += 1

print(count) from sys import stdin N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D points = [] points [] for i in range(N):
    X, Y = map(int, stdin.readline()[:-1].split())
    points.append((X, Y)) i range(N) range N X, Y = map(int, stdin.readline()[:-1].split()) X map(int, stdin.readline()[:-1].split()) map int stdin.readline()[:-1].split() [:-1].split [:-1] stdin.readline() stdin.readline stdin readline :-1 -1 split Y points.append((X, Y)) points.append points append (X, Y) X Y count = 0 count 0 for i in range(N):
    X, Y = points[i]
    d = (X**2 + Y**2) ** 0.5
    if d <= D:
        count += 1 i range(N) range N X, Y = points[i] X points[i] points i Y d = (X**2 + Y**2) ** 0.5 d (X**2 + Y**2) ** 0.5 X**2 + Y**2 X**2 X 2 Y**2 Y 2 0.5 if d <= D:
        count += 1 d <= D d D count += 1 count 1 print(count) print count X, Y = points[i] points[i] X Y = points[i] points[i] Y count += 1 1 count d = (X**2 + Y**2) ** 0.5 (X**2 + Y**2) ** 0.5 d N, D = map(int, input().split()) map(int, input().split()) N D = map(int, input().split()) map(int, input().split()) D count = 0 0 count points = [] [] points Y = map(int, stdin.readline()[:-1].split()) map(int, stdin.readline()[:-1].split()) Y X, Y = map(int, stdin.readline()[:-1].split()) map(int, stdin.readline()[:-1].split()) X
from sys import stdin

N, D = map(int, input().split())
points = []
for i in range(N):
    X, Y = map(int, stdin.readline()[:-1].split())
    points.append((X, Y))

count = 0
for i in range(N):
    X, Y = points[i]
    d = (X**2 + Y**2) ** 0.5
    if d <= D:
        count += 1

print(count)
