import math

def resolve():
    N, D = map(int, input().split())
    count = 0

    for i in range(N):
        a, b = map(int, input().split())
        ans = math.sqrt(a ** 2 + b ** 2)
        if ans <= D:
            count += 1
    print(count)
resolve() import math math def resolve():
    N, D = map(int, input().split())
    count = 0

    for i in range(N):
        a, b = map(int, input().split())
        ans = math.sqrt(a ** 2 + b ** 2)
        if ans <= D:
            count += 1
    print(count) resolve N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D count = 0 count 0 for i in range(N):
        a, b = map(int, input().split())
        ans = math.sqrt(a ** 2 + b ** 2)
        if ans <= D:
            count += 1
     i range(N) range N a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b ans = math.sqrt(a ** 2 + b ** 2) ans math.sqrt(a ** 2 + b ** 2) math.sqrt math sqrt a ** 2 + b ** 2 a ** 2 a 2 b ** 2 b 2 if ans <= D:
            count += 1
     ans <= D ans D count += 1 count 1 print(count) print count resolve() resolve def resolve():
    N, D = map(int, input().split())
    count = 0

    for i in range(N):
        a, b = map(int, input().split())
        ans = math.sqrt(a ** 2 + b ** 2)
        if ans <= D:
            count += 1
    print(count) def resolve():
    N, D = map(int, input().split())
    count = 0

    for i in range(N):
        a, b = map(int, input().split())
        ans = math.sqrt(a ** 2 + b ** 2)
        if ans <= D:
            count += 1
    print(count) resolve
import math

def resolve():
    N, D = map(int, input().split())
    count = 0

    for i in range(N):
        a, b = map(int, input().split())
        ans = math.sqrt(a ** 2 + b ** 2)
        if ans <= D:
            count += 1
    print(count)
resolve()