n, d = map(int, input().split())

import math
count = 0
for i in range(n):
    x, y = map(int, input().split())
    distance = math.sqrt(x**2+y**2)
    if distance <= d:
        count += 1

print(count) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d import math math count = 0 count 0 for i in range(n):
    x, y = map(int, input().split())
    distance = math.sqrt(x**2+y**2)
    if distance <= d:
        count += 1 i range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y distance = math.sqrt(x**2+y**2) distance math.sqrt(x**2+y**2) math.sqrt math sqrt x**2+y**2 x**2 x 2 y**2 y 2 if distance <= d:
        count += 1 distance <= d distance d count += 1 count 1 print(count) print count distance = math.sqrt(x**2+y**2) math.sqrt(x**2+y**2) distance x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y n, d = map(int, input().split()) map(int, input().split()) n count = 0 0 count d = map(int, input().split()) map(int, input().split()) d count += 1 1 count
n, d = map(int, input().split())

import math
count = 0
for i in range(n):
    x, y = map(int, input().split())
    distance = math.sqrt(x**2+y**2)
    if distance <= d:
        count += 1

print(count)