import math
n, d = map(int,input().split( ))
#print(n,d)
number = 0
for a in range(n):
    x, y = map(int, input().split( ))
    if math.sqrt(x**2 + y**2) <= d:
        number += 1
print(number) import math math n, d = map(int,input().split( )) n map(int,input().split( )) map int input().split( ) ().split () input split d number = 0 number 0 for a in range(n):
    x, y = map(int, input().split( ))
    if math.sqrt(x**2 + y**2) <= d:
        number += 1 a range(n) range n x, y = map(int, input().split( )) x map(int, input().split( )) map int input().split( ) ().split () input split y if math.sqrt(x**2 + y**2) <= d:
        number += 1 math.sqrt(x**2 + y**2) <= d math.sqrt(x**2 + y**2) math.sqrt math sqrt x**2 + y**2 x**2 x 2 y**2 y 2 d number += 1 number 1 print(number) print number y = map(int, input().split( )) map(int, input().split( )) y number = 0 0 number n, d = map(int,input().split( )) map(int,input().split( )) n x, y = map(int, input().split( )) map(int, input().split( )) x d = map(int,input().split( )) map(int,input().split( )) d number += 1 1 number
import math
n, d = map(int,input().split( ))
#print(n,d)
number = 0
for a in range(n):
    x, y = map(int, input().split( ))
    if math.sqrt(x**2 + y**2) <= d:
        number += 1
print(number)
