import java.util.*

fun main(args: Array<String>) {
    val sc=Scanner(System.`in`)
    val (a,b)=sc.nextLine().split(" ").map{it.trim().toLong()}
    var count=0
    for(i in 1..a)
    {
        val (x,y)=sc.nextLine().split(" ").map{it.trim().toLong()}.toTypedArray()
        var z=(Math.sqrt(((x*x)+(y*y)).toDouble()))
        if(z<=b.toDouble())
        {
            count++;
        }
    }
    println(count)
}

