import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	} main {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n=in.nextInt() n in.nextInt() in.nextInt in c=0; c 0 int d=in.nextInt(); d in.nextInt() in.nextInt in for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		} int i=1; int i=1; i 1 i<=n i n i++ i++ i {
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		} {
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		} long a=in.nextLong(); a in.nextLong() in.nextLong in long b=in.nextLong(); b in.nextLong() in.nextLong in if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			} Math.sqrt(a*a+b*b)<=d Math.sqrt(a*a+b*b) Math.sqrt Math a*a+b*b a*a a a b*b b b d {
				c++;
			} c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main
{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	}
} public class Main
{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	}
} Main
import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),c=0;
		int d=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			long a=in.nextLong();
			long b=in.nextLong();
			if(Math.sqrt(a*a+b*b)<=d)
			{
				c++;
			}
		}
		System.out.println(c);
	}
}