import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	}
}
 import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int d = Integer.parseInt(sc.next()); d Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double[] result = new double[n]; result new double[n] n double tmp = 0; tmp 0 int count = 0; count 0 for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      } {
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      } tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2) tmp Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2) Math.pow(Double.parseDouble(sc.next()), 2) Math.pow Math Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc 2 Math.pow(Double.parseDouble(sc.next()), 2) Math.pow Math Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc 2 result[i] = Math.sqrt(tmp) result[i] result i Math.sqrt(tmp) Math.sqrt Math tmp if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        } result[i] <= d result[i] result i d {
          count++;
         // System.out.println(result[i]);
        } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力(n:点の個数，d:d以下のものを数える)
		int n = Integer.parseInt(sc.next());
      	int d = Integer.parseInt(sc.next());
      
      	double[] result = new double[n];
      	double tmp = 0;
      	int count = 0;
      
      
      	//距離の計算
      for(int i = 0; i < n; i++){
        tmp = Math.pow(Double.parseDouble(sc.next()), 2) + Math.pow(Double.parseDouble(sc.next()), 2);
    	result[i] = Math.sqrt(tmp);
        //カウント
        if(result[i] <= d){
          count++;
         // System.out.println(result[i]);
        }
      }
  //--------------------------
	//出力
      //System.out.println("n：" + n);
      //System.out.println("d：" + d);
      System.out.println(count);
	}
}

