import math

N, D = map(int, input().split())

count = 0
for _ in range(N):
    x, y = map(int, input().split())
    if math.sqrt(x ** 2 + y ** 2) <= D:
        count += 1

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

N, D = map(int, input().split())

count = 0
for _ in range(N):
    x, y = map(int, input().split())
    if math.sqrt(x ** 2 + y ** 2) <= D:
        count += 1

print(count)