add support to display # hops for task 1
merge from zhimin