import math

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

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

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

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

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

print(cnt)