import sys
input = sys.stdin.readline
N, D = map(int, input().split())
points = [list(map(int, input().split())) for _ in range(N)]

D_2 =pow(D, 2)
count = 0
for i in range(N):
    a = pow(points[i][0], 2) + pow(points[i][1], 2)
    if D_2 >= a:
        count +=1

print(count) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D list(map(int, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split points = [list(map(int, input().split())) for _ in range(N)] points [list(map(int, input().split())) for _ in range(N)] D_2 =pow(D, 2) D_2 pow(D, 2) pow D 2 count = 0 count 0 for i in range(N):
    a = pow(points[i][0], 2) + pow(points[i][1], 2)
    if D_2 >= a:
        count +=1 i range(N) range N a = pow(points[i][0], 2) + pow(points[i][1], 2) a pow(points[i][0], 2) + pow(points[i][1], 2) pow(points[i][0], 2) pow points[i][0] [i] points i 0 2 pow(points[i][1], 2) pow points[i][1] [i] points i 1 2 if D_2 >= a:
        count +=1 D_2 >= a D_2 a count +=1 count 1 print(count) print count D = map(int, input().split()) map(int, input().split()) D N, D = map(int, input().split()) map(int, input().split()) N points = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] points count +=1 1 count input = sys.stdin.readline sys.stdin.readline input count = 0 0 count a = pow(points[i][0], 2) + pow(points[i][1], 2) pow(points[i][0], 2) + pow(points[i][1], 2) a D_2 =pow(D, 2) pow(D, 2) D_2
import sys
input = sys.stdin.readline
N, D = map(int, input().split())
points = [list(map(int, input().split())) for _ in range(N)]

D_2 =pow(D, 2)
count = 0
for i in range(N):
    a = pow(points[i][0], 2) + pow(points[i][1], 2)
    if D_2 >= a:
        count +=1

print(count)
