import sys

readline=sys.stdin.readline

read=sys.stdin.read



n=int(readline())

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

robots=list(zip(m,m))

lr=[[i-j,i+j] for i,j in robots]

lr.sort(key=lambda x:x[1])

prep=lr[0][1]

res=1

for l,r in lr[1:]:

  if l>=prep:

    res+=1

    prep=r

print(res)

import sys

readline=sys.stdin.readline

read=sys.stdin.read



from operator import itemgetter



n=int(readline())

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

robots=list(zip(m,m))

lr=[[i-j,i+j] for i,j in robots]

lr.sort(key=itemgetter(1))

prep=lr[0][1]

res=1

for l,r in lr[1:]:

  if l>=prep:

    res+=1

    prep=r

print(res)

import sys

readline = sys.stdin.readline
read = sys.stdin.read
n = int(readline())
m = list(map(int, read().split()))
robots = list(zip(m, m))
lr = [[i - j, i + j] for i, j in robots]
lr.sort(key=lambda x: x[1])
prep = lr[0][1]
res = 1
for l, r in lr[1:]:
    if l >= prep:
        res += 1
        prep = r
print(res)

import sys

readline = sys.stdin.readline
read = sys.stdin.read
from operator import itemgetter

n = int(readline())
m = list(map(int, read().split()))
robots = list(zip(m, m))
lr = [[i - j, i + j] for i, j in robots]
lr.sort(key=itemgetter(1))
prep = lr[0][1]
res = 1
for l, r in lr[1:]:
    if l >= prep:
        res += 1
        prep = r
print(res)

+from operator import itemgetter + -lr.sort(key=lambda x: x[1]) +lr.sort(key=itemgetter(1))