#B問題

import math

distance = 0
ans = 0
n, d = map(int, input().split())
x = [input().split() for l in range(n)]

#リストの中にリストがある時→A[i][j]のように表現
for i in range(n):
    distance = math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2))
    if distance <= d:
        ans += 1
print(ans) import math math distance = 0 distance 0 ans = 0 ans 0 n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d input().split() for l in range(n) for l in range(n) l range(n) range n for l in range(n) input().split() ().split () input split x = [input().split() for l in range(n)] x [input().split() for l in range(n)] for i in range(n):
    distance = math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2))
    if distance <= d:
        ans += 1 i range(n) range n distance = math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2)) distance math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2)) math.sqrt math sqrt pow(int(x[i][0]),2)+pow(int(x[i][1]),2) pow(int(x[i][0]),2) pow int(x[i][0]) int x[i][0] [i] x i 0 2 pow(int(x[i][1]),2) pow int(x[i][1]) int x[i][1] [i] x i 1 2 if distance <= d:
        ans += 1 distance <= d distance d ans += 1 ans 1 print(ans) print ans ans = 0 0 ans distance = 0 0 distance n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d distance = math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2)) math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2)) distance ans += 1 1 ans x = [input().split() for l in range(n)] [input().split() for l in range(n)] x
#B問題

import math

distance = 0
ans = 0
n, d = map(int, input().split())
x = [input().split() for l in range(n)]

#リストの中にリストがある時→A[i][j]のように表現
for i in range(n):
    distance = math.sqrt(pow(int(x[i][0]),2)+pow(int(x[i][1]),2))
    if distance <= d:
        ans += 1
print(ans)