import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out)); writer new BufferedWriter(new OutputStreamWriter(System.out)) String[] lo = reader.readLine().split(" "); lo reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int n = Integer.parseInt(lo[0]); n Integer.parseInt(lo[0]) Integer.parseInt Integer lo[0] lo 0 double d = Double.parseDouble(lo[1]); d Double.parseDouble(lo[1]) Double.parseDouble Double lo[1] lo 1 int ans = 0; ans 0 for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		} {
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		} String[] po = reader.readLine().split(" "); po reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " long x = Long.parseLong(po[0]); x Long.parseLong(po[0]) Long.parseLong Long po[0] po 0 long y = Long.parseLong(po[1]); y Long.parseLong(po[1]) Long.parseLong Long po[1] po 1 if(Math.sqrt(x*x+y*y) <=d) ans++; Math.sqrt(x*x+y*y) <=d Math.sqrt(x*x+y*y) Math.sqrt Math x*x+y*y x*x x x y*y y y d ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	}
} Main
import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
		String[] lo = reader.readLine().split(" ");
		int n = Integer.parseInt(lo[0]);
		double d = Double.parseDouble(lo[1]);
		int ans = 0;
		for(int i = 0;i<n;i++){
			String[] po = reader.readLine().split(" ");
			long x = Long.parseLong(po[0]);
			long y = Long.parseLong(po[1]);
			if(Math.sqrt(x*x+y*y) <=d) ans++;
		}
		System.out.println(ans);
	}
}