import math

def dis(x, y):
    return math.sqrt(x * x + y * y)

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

result = 0
for i in range(N):
    x, y = map(int, input().split())
    if dis(x, y) <= D:
        result += 1

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

def dis(x, y):
    return math.sqrt(x * x + y * y)

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

result = 0
for i in range(N):
    x, y = map(int, input().split())
    if dis(x, y) <= D:
        result += 1

print(result)

