import java.util.Scanner;

public class Main{
	public static void main(String[] arg){
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    }
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] arg){
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    }
} Main public static void main(String[] arg){
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    } main {
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double[] x = new double[n]; x new double[n] n double[] y = new double[n]; y new double[n] n double len = sc.nextInt(); len sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      } {
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      } x[i] = sc.nextDouble() x[i] x i sc.nextDouble() sc.nextDouble sc y[i] = sc.nextDouble() y[i] y i sc.nextDouble() sc.nextDouble sc if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        } Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2)) Math.sqrt Math Math.pow(x[i],2)+Math.pow(y[i],2) Math.pow(x[i],2) Math.pow Math x[i] x i 2 Math.pow(y[i],2) Math.pow Math y[i] y i 2 len {
          count = count+1;
        } count = count+1 count count+1 count 1 System.out.println(count) System.out.println System.out System System.out count String[] arg arg public class Main{
	public static void main(String[] arg){
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    }
} public class Main{
	public static void main(String[] arg){
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    }
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] arg){
  		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	double[] x = new double[n];
      	double[] y = new double[n];
      	double len = sc.nextInt();
      int count = 0;
      for (int i=0;i<n;i++){
        x[i] = sc.nextDouble();
        y[i] = sc.nextDouble();
        if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){
          count = count+1;
        }
      }
          System.out.println(count);
        
    }
}