#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; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ll 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; while(n--){ ll xi,yi; cin >> xi >> yi; ll tmp=hypot(xi-x,yi-y); if(tmp<=r) cc++; } cout << cc << endl; return 0; }