
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	} main {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Integer d = sc.nextInt(); d sc.nextInt() sc.nextInt sc Integer count = 0; count 0 for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		} Integer i = 0; Integer i = 0; i 0 i < n i n i++ i++ i {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		} {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		} Long x = sc.nextLong(); x sc.nextLong() sc.nextLong sc Long y = sc.nextLong(); y sc.nextLong() sc.nextLong sc Long z = x * x + y * y; z x * x + y * y x * x x x y * y y y if (z < 0) {
				z *= -1;
			} z < 0 z 0 {
				z *= -1;
			} z *= -1 z -1 1 Double distance = Math.sqrt(z); distance Math.sqrt(z) Math.sqrt Math z if (distance <= d) {
				count++;
			} distance <= d distance 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) {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		Integer n = sc.nextInt();
		Integer d = sc.nextInt();
		Integer count = 0;

		for (Integer i = 0; i < n; i++) {
			Long x = sc.nextLong();
			Long y = sc.nextLong();

			Long z = x * x + y * y;
			if (z < 0) {
				z *= -1;
			}

			Double distance = Math.sqrt(z);

			if (distance <= d) {
				count++;
			}

		}

		System.out.println(count);

	}

}