import kotlin.math.sqrt

fun main(args: Array<String>) {
    val ND = readLine()!!;
    val NDSplited = ND.split(" ");
    val N = NDSplited[0].toLong()
    val D = NDSplited[1].toLong()

    val xyList = mutableListOf<Pair<Long, Long>>()
    for (n in 1..N) {
        val xy = readLine()!!
        val xySplited = xy.split(" ")

        xyList.add(Pair(xySplited[0].toLong(), xySplited[1].toLong()))

    }

    var counter = 0
    for (pair in xyList) {
        val value = (pair.first * pair.first) + (pair.second * pair.second)
        if (sqrt(value.toDouble()) <= D) {
            counter++
        }
    }
    println(counter)
}