#include<cmath>
#include<cstdio>
using namespace std;

int N, ans;

int xc, yc, R, x, y;
double eps = 0.00001;

inline double distance(int x1, int y1, int x2, int y2){
    return sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
}

int main(){

scanf("%d %d %d %d", &N, &xc, &yc, &R);

while(N--){
    scanf("%d %d", &x, &y);
    if(R - distance(xc, yc, x, y) >= eps) ans++;
}printf("%d", ans);

return 0;
}