#include<iostream>
using namespace std;
int main()
{
	long long N, D, X, Y, sum = 0;
	cin >> N >> D;
	for (int i = 0; i < N; i++)
	{
		cin >> X >> Y;
		if (X * X + Y * Y <= D * D)
			sum++;
	}
	cout << sum;
	return 0;
}