import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	}

} import java.util.*; util.* java import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	} main {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int N = Integer.parseInt(st.nextToken()); N Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int D = Integer.parseInt(st.nextToken()); D Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int count = 0; count 0 for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		} {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		} st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) int x = Integer.parseInt(st.nextToken()); x Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int y = Integer.parseInt(st.nextToken()); y Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			} Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) Math.sqrt Math Math.pow(x,2) + Math.pow(y,2) Math.pow(x,2) Math.pow Math x 2 Math.pow(y,2) Math.pow Math y 2 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) throws NumberFormatException, IOException {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	}

} Main
import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
//		Scanner scan= new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		StringTokenizer st = new StringTokenizer(br.readLine());
		int N = Integer.parseInt(st.nextToken());
		int D = Integer.parseInt(st.nextToken());
		
//		int[] x = new int[N];
//		int[] y = new int[N];
		int count = 0;
		for (int i = 0; i < N; i++) {
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());
			int y = Integer.parseInt(st.nextToken());
			
			if (Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) <= D) {
				count++;
			}
		}
		System.out.println(count);
		
	}

}
