import java.util.*
fun main(args: Array<String>) {
    val reader = Scanner(System.`in`)
    var N = reader.nextInt()
    val D = reader.nextLong()
    val DD = D * D
    var count = 0
    repeat(N){
        val xi = reader.nextLong()
        val yi = reader.nextLong()
        val xyDistance = xi * xi + yi * yi
        if(xyDistance <= DD){
            count++
        }
    }
    println(count)
}