select count(*) from (
select distinct user_b from twitter_edges where user_a in (
select distinct user_b from twitter_edges where user_a in (
select distinct user_b from twitter_edges where user_a in (
select distinct user_b from twitter_edges where user_a = '40981798'
)
)
)
)
good test case: