/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan double d = scan.nextInt(); d scan.nextInt() scan.nextInt scan int count = 0; count 0 while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		} n-- >0 n-- n 0 {
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2)); dis 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 if(dis<=d){
				count++;
			} dis<=d dis 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 java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	}
} Main
/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	}
}