
import sys
import math
input = sys.stdin.readline

def inlt():
    return(list(map(int,input().split())))
n, d = inlt()
cnt = 0
for i in range(n):
    x, y = inlt()
    if math.sqrt(x**2+y**2)<=d:
        cnt+=1
print(cnt)         import sys sys import math math input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def inlt():
    return(list(map(int,input().split()))) inlt return(list(map(int,input().split()))) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split n, d = inlt() n inlt() inlt d cnt = 0 cnt 0 for i in range(n):
    x, y = inlt()
    if math.sqrt(x**2+y**2)<=d:
        cnt+=1 i range(n) range n x, y = inlt() x inlt() inlt y if math.sqrt(x**2+y**2)<=d:
        cnt+=1 math.sqrt(x**2+y**2)<=d math.sqrt(x**2+y**2) math.sqrt math sqrt x**2+y**2 x**2 x 2 y**2 y 2 d cnt+=1 cnt 1 print(cnt) print cnt d = inlt() inlt() d n, d = inlt() inlt() n cnt+=1 1 cnt def inlt():
    return(list(map(int,input().split()))) def inlt():
    return(list(map(int,input().split()))) inlt input = sys.stdin.readline sys.stdin.readline input x, y = inlt() inlt() x cnt = 0 0 cnt y = inlt() inlt() y

import sys
import math
input = sys.stdin.readline

def inlt():
    return(list(map(int,input().split())))
n, d = inlt()
cnt = 0
for i in range(n):
    x, y = inlt()
    if math.sqrt(x**2+y**2)<=d:
        cnt+=1
print(cnt)        