import sys

input = sys.stdin.readline

n = int(eval(input()))

c = []

for i in range(n):

  l,x = list(map(int,input().split()))

  c.append((l-x,l+x))

  

from operator import itemgetter

c = sorted(c,key=itemgetter(0))

c = sorted(c,key=itemgetter(1))



ans = 1

chk = c[0][1]

for i,j in c:

  if i >= chk:

    ans +=1

    chk = j

    

print(ans)
import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines

 

n = int(readline())

m = list(map(int,read().split()))

xl = list(zip(m,m))

c = [(x-l,x+l) for x,l in xl]

  

from operator import itemgetter

c.sort()

c.sort(key=itemgetter(1))



ans = 1

chk = c[0][1]

for i,j in c:

  if i >= chk:

    ans +=1

    chk = j

    

print(ans)
import sys

input = sys.stdin.readline
n = int(eval(input()))
c = []
for i in range(n):
    l, x = list(map(int, input().split()))
    c.append((l - x, l + x))
from operator import itemgetter

c = sorted(c, key=itemgetter(0))
c = sorted(c, key=itemgetter(1))
ans = 1
chk = c[0][1]
for i, j in c:
    if i >= chk:
        ans += 1
        chk = j
print(ans)

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
n = int(readline())
m = list(map(int, read().split()))
xl = list(zip(m, m))
c = [(x - l, x + l) for x, l in xl]
from operator import itemgetter

c.sort()
c.sort(key=itemgetter(1))
ans = 1
chk = c[0][1]
for i, j in c:
    if i >= chk:
        ans += 1
        chk = j
print(ans)

-input = sys.stdin.readline -n = int(eval(input())) -c = [] -for i in range(n): -    l, x = list(map(int, input().split())) -    c.append((l - x, l + x)) +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines +n = int(readline()) +m = list(map(int, read().split())) +xl = list(zip(m, m)) +c = [(x - l, x + l) for x, l in xl] -c = sorted(c, key=itemgetter(0)) -c = sorted(c, key=itemgetter(1)) +c.sort() +c.sort(key=itemgetter(1))