object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val d = sc.nextLong()
  val xy = List.fill(n)((sc.nextLong(), sc.nextLong()))
  val ans = xy.count{case (x,y) => x*x + y*y <= d*d}
  println(ans)
}
