import math
import numpy as np
from itertools import chain
count = 0
t = 0
a,b = map(int,input().split())

p = [list(map(int,input().split()))for i in range(a)]

fp = list(chain.from_iterable(p))

pp = np.abs(fp)

for i in range(a):
    s = math.sqrt(pp[t]**2 + pp[t+1]**2)
    t +=2
    if s <= b:
        count+=1
print(count) import math math import numpy as np numpy from itertools import chain count = 0 count 0 t = 0 t 0 a,b = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b list(map(int,input().split()))for i in range(a) for i in range(a) i range(a) range a for i in range(a) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split p = [list(map(int,input().split()))for i in range(a)] p [list(map(int,input().split()))for i in range(a)] fp = list(chain.from_iterable(p)) fp list(chain.from_iterable(p)) list chain.from_iterable(p) chain.from_iterable chain from_iterable p pp = np.abs(fp) pp np.abs(fp) np.abs np abs fp for i in range(a):
    s = math.sqrt(pp[t]**2 + pp[t+1]**2)
    t +=2
    if s <= b:
        count+=1 i range(a) range a s = math.sqrt(pp[t]**2 + pp[t+1]**2) s math.sqrt(pp[t]**2 + pp[t+1]**2) math.sqrt math sqrt pp[t]**2 + pp[t+1]**2 pp[t]**2 pp[t] pp t 2 pp[t+1]**2 pp[t+1] pp t+1 t 1 2 t +=2 t 2 if s <= b:
        count+=1 s <= b s b count+=1 count 1 print(count) print count s = math.sqrt(pp[t]**2 + pp[t+1]**2) math.sqrt(pp[t]**2 + pp[t+1]**2) s a,b = map(int,input().split()) map(int,input().split()) a t = 0 0 t fp = list(chain.from_iterable(p)) list(chain.from_iterable(p)) fp b = map(int,input().split()) map(int,input().split()) b p = [list(map(int,input().split()))for i in range(a)] [list(map(int,input().split()))for i in range(a)] p t +=2 2 t count+=1 1 count count = 0 0 count pp = np.abs(fp) np.abs(fp) pp
import math
import numpy as np
from itertools import chain
count = 0
t = 0
a,b = map(int,input().split())

p = [list(map(int,input().split()))for i in range(a)]

fp = list(chain.from_iterable(p))

pp = np.abs(fp)

for i in range(a):
    s = math.sqrt(pp[t]**2 + pp[t+1]**2)
    t +=2
    if s <= b:
        count+=1
print(count)