//package atcoder;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
	public static void main(String [] args)  {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int x[] = new int[N];
		int y[] = new int[N];
		for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int count = 0;

		//System.out.println(x[1]);
		//System.out.println(y[1]);
		double kyori = 0;
		for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		}
		System.out.println(count);
		
	}
} import java.io.BufferedWriter; BufferedWriter java.io import java.io.FileWriter; FileWriter java.io import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String [] args)  {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int x[] = new int[N];
		int y[] = new int[N];
		for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int count = 0;

		//System.out.println(x[1]);
		//System.out.println(y[1]);
		double kyori = 0;
		for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		}
		System.out.println(count);
		
	}
} Main public static void main(String [] args)  {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int x[] = new int[N];
		int y[] = new int[N];
		for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int count = 0;

		//System.out.println(x[1]);
		//System.out.println(y[1]);
		double kyori = 0;
		for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		}
		System.out.println(count);
		
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int x[] = new int[N];
		int y[] = new int[N];
		for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int count = 0;

		//System.out.println(x[1]);
		//System.out.println(y[1]);
		double kyori = 0;
		for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		}
		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 int D = sc.nextInt(); D sc.nextInt() sc.nextInt sc int x[] = new int[N]; x new int[N] N int y[] = new int[N]; y new int[N] N for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc int count = 0; count 0 double kyori = 0; kyori 0 for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		} int j=0; int j=0; j 0 j<N j N j++ j++ j {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		} {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		} kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2))) kyori Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2))) Math.sqrt Math (Math.pow(x[j], 2)+Math.pow(y[j], 2)) Math.pow(x[j], 2) Math.pow Math x[j] x j 2 Math.pow(y[j], 2) Math.pow Math y[j] y j 2 if(kyori<=D) {
				count ++;
			} kyori<=D kyori D {
				count ++;
			} 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);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int x[] = new int[N];
		int y[] = new int[N];
		for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int count = 0;

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

		//System.out.println(x[1]);
		//System.out.println(y[1]);
		double kyori = 0;
		for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		}
		System.out.println(count);
		
	}
} Main
//package atcoder;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
	public static void main(String [] args)  {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int x[] = new int[N];
		int y[] = new int[N];
		for(int i=0;i<N;i++) {
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int count = 0;

		//System.out.println(x[1]);
		//System.out.println(y[1]);
		double kyori = 0;
		for(int j=0;j<N;j++) {
			kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
			//System.out.println(kyori);
			if(kyori<=D) {
				count ++;
			}
		}
		System.out.println(count);
		
	}
}