import math

n, d = map(int, input().split())
x = [list(map(int,input().split())) for i in range(n)]

ans = 0
for i,j in x:
    if math.sqrt((i*i)+(j*j)) <= d:
        ans += 1

print(ans) import math math 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 i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split x = [list(map(int,input().split())) for i in range(n)] x [list(map(int,input().split())) for i in range(n)] ans = 0 ans 0 for i,j in x:
    if math.sqrt((i*i)+(j*j)) <= d:
        ans += 1 i j x if math.sqrt((i*i)+(j*j)) <= d:
        ans += 1 math.sqrt((i*i)+(j*j)) <= d math.sqrt((i*i)+(j*j)) math.sqrt math sqrt (i*i)+(j*j) i*i i i j*j j j d ans += 1 ans 1 print(ans) print ans n, d = map(int, input().split()) map(int, input().split()) n x = [list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] x ans += 1 1 ans ans = 0 0 ans d = map(int, input().split()) map(int, input().split()) d
import math

n, d = map(int, input().split())
x = [list(map(int,input().split())) for i in range(n)]

ans = 0
for i,j in x:
    if math.sqrt((i*i)+(j*j)) <= d:
        ans += 1

print(ans)