import math

n, d = [int(n) for n in input().split(' ')]

cnt = 0
for i in range(n):
    x, y = [int(n) for n in input().split(' ')]
    if math.sqrt(x*x + y*y) <= d:
        cnt += 1
print(cnt) import math math int(n) for n in input().split(' ') for n in input().split(' ') n input().split(' ') ().split () input split ' ' for n in input().split(' ') int(n) int n n, d = [int(n) for n in input().split(' ')] n [int(n) for n in input().split(' ')] d cnt = 0 cnt 0 for i in range(n):
    x, y = [int(n) for n in input().split(' ')]
    if math.sqrt(x*x + y*y) <= d:
        cnt += 1 i range(n) range n int(n) for n in input().split(' ') for n in input().split(' ') n input().split(' ') ().split () input split ' ' for n in input().split(' ') int(n) int n x, y = [int(n) for n in input().split(' ')] x [int(n) for n in input().split(' ')] y if math.sqrt(x*x + y*y) <= d:
        cnt += 1 math.sqrt(x*x + y*y) <= d math.sqrt(x*x + y*y) math.sqrt math sqrt x*x + y*y x*x x x y*y y y d cnt += 1 cnt 1 print(cnt) print cnt d = [int(n) for n in input().split(' ')] [int(n) for n in input().split(' ')] d cnt = 0 0 cnt cnt += 1 1 cnt n, d = [int(n) for n in input().split(' ')] [int(n) for n in input().split(' ')] n x, y = [int(n) for n in input().split(' ')] [int(n) for n in input().split(' ')] x y = [int(n) for n in input().split(' ')] [int(n) for n in input().split(' ')] y
import math

n, d = [int(n) for n in input().split(' ')]

cnt = 0
for i in range(n):
    x, y = [int(n) for n in input().split(' ')]
    if math.sqrt(x*x + y*y) <= d:
        cnt += 1
print(cnt)
