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

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

ans = 0
for i in range(n):
    x = xy[i][0] ** 2
    y = xy[i][1] ** 2
    sub = math.sqrt(x+y)
    if sub <= d:
        ans += 1
        
print(ans)        