// wish me luck nibbas
#include <bits/stdc++.h>
using namespace std;
#define start_routine cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false); int begtime = clock();
#define end_routine int endtime = clock(); cerr << endl << "Time elapsed: " << (endtime - begtime)*1000/CLOCKS_PER_SEC << " ms"; return 0
#define PB push_back
#define MP make_pair
#define MOD (int)1e9 + 7
#define maxn 100001
#define inf (int) 1e15
#define int long long
#define vi vector<int>
#define all(v) v.begin(), v.end() 
#define pii pair<int, int>
#define mii map<int, int> 
#define print(stuff) cout << stuff << endl
#define len(stuff) stuff.size()

signed main() {	
	start_routine;
	int n, x, y, r;
	cin >> n >> x >> y >> r;
	int ans=0;
	for (int i = 0; i < n; i++) {
		int a,b;
		cin >> a >> b;
		if ((a-x)*(a-x)+(b-y)*(b-y) <= r*r) ans += 1;
	}
	cout << ans;
	end_routine;
}