import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} Main public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	} main {
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int n = Integer.parseInt(str[0]); n Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 double d = Integer.parseInt(str[1]); d Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int cnt = 0; cnt 0 for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		} int i=0; int i=0; i 0 i < n i n i++ i++ i {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		} {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		} str = in.readLine().split(" ") str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " double x = Integer.parseInt(str[0]); x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 double y = Integer.parseInt(str[1]); y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			} 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 {
				cnt++;
			} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		double d = Integer.parseInt(str[1]);
		int cnt = 0;

		for(int i=0; i < n; i++) {
			str = in.readLine().split(" ");
			double x = Integer.parseInt(str[0]);
			double y = Integer.parseInt(str[1]);
			if(Math.sqrt(x*x+y*y)<=d) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
}