from sys import stdin
input = stdin.readline
N, D = map(int, input().split())

X=[0]*N
Y=[0]*N
c=0
for i in range(N):
    X[i], Y[i] = map(int, input().split())
    if D**2>=X[i]**2+Y[i]**2:c=c+1 

print(c) from sys import stdin input = stdin.readline input stdin.readline stdin readline N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D X=[0]*N X [0]*N [0] 0 N Y=[0]*N Y [0]*N [0] 0 N c=0 c 0 for i in range(N):
    X[i], Y[i] = map(int, input().split())
    if D**2>=X[i]**2+Y[i]**2:c=c+1  i range(N) range N X[i], Y[i] = map(int, input().split()) X[i] X i map(int, input().split()) map int input().split() ().split () input split Y[i] Y i if D**2>=X[i]**2+Y[i]**2:c= D**2>=X[i]**2+Y[i]**2 D**2 D 2 X[i]**2+Y[i]**2 X[i]**2 X[i] X i 2 Y[i]**2 Y[i] Y i 2 print(c) print c Y=[0]*N [0]*N Y X=[0]*N [0]*N X input = stdin.readline stdin.readline input c=0 0 c N, D = map(int, input().split()) map(int, input().split()) N D = map(int, input().split()) map(int, input().split()) D
from sys import stdin
input = stdin.readline
N, D = map(int, input().split())

X=[0]*N
Y=[0]*N
c=0
for i in range(N):
    X[i], Y[i] = map(int, input().split())
    if D**2>=X[i]**2+Y[i]**2:c=c+1 

print(c)