import java.util.*
import kotlin.math.*
import java.io.*

var ans:Long = 0

fun main() {
    val A  = readLine()!!.split(" ").map{ it.toLong() }
    val N:Long  = A[0]
    val D:Long  = A[1]
    for(i in 1..N){
        var B  = readLine()!!.split(" ").map { it.toLong() }
        var x1:Long  = B[0]
        var y1:Long  = B[1]
        var rr = (x1*x1)+(y1*y1)
        if(rr<=D*D){
            ans++
        }
    }
    println(ans)
}