


def dist(point):
    return (point[0]**2 + point[1]**2)**(1/2)


if __name__ == "__main__" :
    N,D = [int(i) for i in input().split()]
    count = 0
    for _ in range(N):
        point = [int(i) for i in input().split()]
        if dist(point) <= D:
            count += 1

    print(count) def dist(point):
    return (point[0]**2 + point[1]**2)**(1/2) dist return (point[0]**2 + point[1]**2)**(1/2) (point[0]**2 + point[1]**2)**(1/2) point[0]**2 + point[1]**2 point[0]**2 point[0] point 0 2 point[1]**2 point[1] point 1 2 1/2 1 2 point point if __name__ == "__main__" :
    N,D = [int(i) for i in input().split()]
    count = 0
    for _ in range(N):
        point = [int(i) for i in input().split()]
        if dist(point) <= D:
            count += 1

    print(count) __name__ == "__main__" __name__ "__main__" int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N,D = [int(i) for i in input().split()] N [int(i) for i in input().split()] D count = 0 count 0 for _ in range(N):
        point = [int(i) for i in input().split()]
        if dist(point) <= D:
            count += 1

     _ range(N) range N int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i point = [int(i) for i in input().split()] point [int(i) for i in input().split()] if dist(point) <= D:
            count += 1

     dist(point) <= D dist(point) dist point D count += 1 count 1 print(count) print count def dist(point):
    return (point[0]**2 + point[1]**2)**(1/2) def dist(point):
    return (point[0]**2 + point[1]**2)**(1/2) dist N,D = [int(i) for i in input().split()] [int(i) for i in input().split()] N point = [int(i) for i in input().split()] [int(i) for i in input().split()] point count = 0 0 count D = [int(i) for i in input().split()] [int(i) for i in input().split()] D count += 1 1 count



def dist(point):
    return (point[0]**2 + point[1]**2)**(1/2)


if __name__ == "__main__" :
    N,D = [int(i) for i in input().split()]
    count = 0
    for _ in range(N):
        point = [int(i) for i in input().split()]
        if dist(point) <= D:
            count += 1

    print(count)
