import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	}

} Main public static void main(String[] args) {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	} main {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	} int count = 0; count 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long d = sc.nextLong(); d sc.nextLong() sc.nextLong sc long dd = d * d; dd d * d d d sc.nextLine() sc.nextLine sc for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		} {
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		} long p = sc.nextLong(); p sc.nextLong() sc.nextLong sc long q = sc.nextLong(); q sc.nextLong() sc.nextLong sc long dist = p*p+q*q; dist p*p+q*q p*p p p q*q q q if(dist <= dd){
				count++;

			} dist <= dd dist dd {
				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) {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	}

} public class Main {

	public static void main(String[] args) {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int count = 0;

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		long d = sc.nextLong();
		long dd = d * d;

		sc.nextLine();
		for(int i=0;i<n;i++){
			long p = sc.nextLong();
			long q = sc.nextLong();
			long dist = p*p+q*q;
			if(dist <= dd){
				count++;

			}

		}

		System.out.println(count);


	}

}