import math
N , D = ( int(x) for x in input().split() )
X = [ ]
Y = [ ]

for i in range(N):
    x , y = ( int(x) for x in input().split() )
    X.append(x)
    Y.append(y)


ans = 0
for i in range( N ):
    x1 = X[i]
    y1 = Y[i]
    d = math.sqrt( (x1)**2 + (y1)**2 )
    if d <= D:
        ans += 1

print(ans) import math math int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N , D = ( int(x) for x in input().split() ) N ( int(x) for x in input().split() ) D X = [ ] X [ ] Y = [ ] Y [ ] for i in range(N):
    x , y = ( int(x) for x in input().split() )
    X.append(x)
    Y.append(y) i range(N) range N int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x x , y = ( int(x) for x in input().split() ) x ( int(x) for x in input().split() ) y X.append(x) X.append X append x Y.append(y) Y.append Y append y ans = 0 ans 0 for i in range( N ):
    x1 = X[i]
    y1 = Y[i]
    d = math.sqrt( (x1)**2 + (y1)**2 )
    if d <= D:
        ans += 1 i range( N ) range N x1 = X[i] x1 X[i] X i y1 = Y[i] y1 Y[i] Y i d = math.sqrt( (x1)**2 + (y1)**2 ) d math.sqrt( (x1)**2 + (y1)**2 ) math.sqrt math sqrt (x1)**2 + (y1)**2 (x1)**2 x1 2 (y1)**2 y1 2 if d <= D:
        ans += 1 d <= D d D ans += 1 ans 1 print(ans) print ans D = ( int(x) for x in input().split() ) ( int(x) for x in input().split() ) D Y = [ ] [ ] Y d = math.sqrt( (x1)**2 + (y1)**2 ) math.sqrt( (x1)**2 + (y1)**2 ) d N , D = ( int(x) for x in input().split() ) ( int(x) for x in input().split() ) N y1 = Y[i] Y[i] y1 X = [ ] [ ] X x , y = ( int(x) for x in input().split() ) ( int(x) for x in input().split() ) x ans += 1 1 ans y = ( int(x) for x in input().split() ) ( int(x) for x in input().split() ) y x1 = X[i] X[i] x1 ans = 0 0 ans
import math
N , D = ( int(x) for x in input().split() )
X = [ ]
Y = [ ]

for i in range(N):
    x , y = ( int(x) for x in input().split() )
    X.append(x)
    Y.append(y)


ans = 0
for i in range( N ):
    x1 = X[i]
    y1 = Y[i]
    d = math.sqrt( (x1)**2 + (y1)**2 )
    if d <= D:
        ans += 1

print(ans)