object Main {
  def main(args: Array[String]): Unit = {
    val Array( nums, dis ) = scala.io.StdIn.readLine.split(" ").map{_.toInt}
    var count = 0

    val dis_2 = dis*dis.toLong
    ( 0 until nums ).foreach{ i =>
      val Array( x, y ) = scala.io.StdIn.readLine.split(" ").map{_.toInt}
      val check_dis = x*x.toLong + y*y.toLong
      if( check_dis <= dis_2 ) count += 1
    }
    println( count )

  }
}