#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; #define PI 3.14159265359 #define eps 1e-7 #define mp make_pair #define pb push_back #define FOR(i,a,b) for(int i=a;i<b;i++) #define FORN(i,a,b) for(int i=a;i<=b;i++) const int INF = 1<<29; typedef unsigned long long ll; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// int n,x,y,r; int main(){ ios_base::sync_with_stdio(false); //Fast I/O cin.tie(NULL); //freopen("input.txt","r",stdin); //freopen("output.txt","w",stdout); cin >> n >> x >> y >> r; int cc=0; FOR(i,0,n){ int xi,yi; cin >> xi >> yi; int tmp=sqrt((x-xi)*(x-xi)+(y-yi)*(y-yi)); if(tmp<=r) cc++; } cout << cc << endl; return 0; }