import kotlin.math.pow
import kotlin.math.sqrt

fun main (args:Array<String>){
    val (point, standard) = readLine()!!.split(" ").map(String::toInt)
    var anscount = 0
    for(i in 1..point){
        val (pointX, pointY) = readLine()!!.split(" ").map(String::toDouble)
        val distanceFromOrigin = sqrt(pointX.pow(2) + pointY.pow(2))
        if(distanceFromOrigin <= standard){
            anscount++
        }
    }
    print(anscount)
}