import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz