import math

numbers = input().split(" ")
numbers = [int(x) for x in numbers]
N = numbers[0]
D = numbers[1]

return_value =0

for i in range(N):
    coordinates = input().split(" ")
    coordinates = [int(x) for x in coordinates]
    x_coor = coordinates[0]
    y_coor = coordinates[1]
    distance = math.sqrt((x_coor ** 2) + (y_coor ** 2))
    if distance <= D:
        return_value += 1

print(return_value) import math math numbers = input().split(" ") numbers input().split(" ") ().split () input split " " int(x) for x in numbers for x in numbers x numbers for x in numbers int(x) int x numbers = [int(x) for x in numbers] numbers [int(x) for x in numbers] N = numbers[0] N numbers[0] numbers 0 D = numbers[1] D numbers[1] numbers 1 return_value =0 return_value 0 for i in range(N):
    coordinates = input().split(" ")
    coordinates = [int(x) for x in coordinates]
    x_coor = coordinates[0]
    y_coor = coordinates[1]
    distance = math.sqrt((x_coor ** 2) + (y_coor ** 2))
    if distance <= D:
        return_value += 1 i range(N) range N coordinates = input().split(" ") coordinates input().split(" ") ().split () input split " " int(x) for x in coordinates for x in coordinates x coordinates for x in coordinates int(x) int x coordinates = [int(x) for x in coordinates] coordinates [int(x) for x in coordinates] x_coor = coordinates[0] x_coor coordinates[0] coordinates 0 y_coor = coordinates[1] y_coor coordinates[1] coordinates 1 distance = math.sqrt((x_coor ** 2) + (y_coor ** 2)) distance math.sqrt((x_coor ** 2) + (y_coor ** 2)) math.sqrt math sqrt (x_coor ** 2) + (y_coor ** 2) x_coor ** 2 x_coor 2 y_coor ** 2 y_coor 2 if distance <= D:
        return_value += 1 distance <= D distance D return_value += 1 return_value 1 print(return_value) print return_value N = numbers[0] numbers[0] N coordinates = [int(x) for x in coordinates] [int(x) for x in coordinates] coordinates return_value += 1 1 return_value D = numbers[1] numbers[1] D numbers = [int(x) for x in numbers] [int(x) for x in numbers] numbers coordinates = input().split(" ") input().split(" ") coordinates return_value =0 0 return_value x_coor = coordinates[0] coordinates[0] x_coor numbers = input().split(" ") input().split(" ") numbers y_coor = coordinates[1] coordinates[1] y_coor distance = math.sqrt((x_coor ** 2) + (y_coor ** 2)) math.sqrt((x_coor ** 2) + (y_coor ** 2)) distance
import math

numbers = input().split(" ")
numbers = [int(x) for x in numbers]
N = numbers[0]
D = numbers[1]

return_value =0

for i in range(N):
    coordinates = input().split(" ")
    coordinates = [int(x) for x in coordinates]
    x_coor = coordinates[0]
    y_coor = coordinates[1]
    distance = math.sqrt((x_coor ** 2) + (y_coor ** 2))
    if distance <= D:
        return_value += 1

print(return_value)