

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	} Scanner in=new Scanner(System.in); in new Scanner(System.in) int T=in.nextInt(); T in.nextInt() in.nextInt in int count=0; count 0 double a=Math.pow(in.nextDouble(),2); a Math.pow(in.nextDouble(),2) Math.pow Math in.nextDouble() in.nextDouble in 2 for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		} int i=0; int i=0; i 0 i<T i T i++ i++ i {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		} {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		} double a1=in.nextDouble() a1 in.nextDouble() in.nextDouble in a2=in.nextDouble(); a2 in.nextDouble() in.nextDouble in if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			} Math.pow(a1,2)+Math.pow(a2,2)<=a Math.pow(a1,2)+Math.pow(a2,2) Math.pow(a1,2) Math.pow Math a1 2 Math.pow(a2,2) Math.pow Math a2 2 a {
				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) {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main


import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int T=in.nextInt();
		int count=0;
		double a=Math.pow(in.nextDouble(),2);
		for(int i=0;i<T;i++) {
			double a1=in.nextDouble(),a2=in.nextDouble();
			if(Math.pow(a1,2)+Math.pow(a2,2)<=a) {
				count++;
			}
		}
		System.out.println(count);
	}
}
