emergency: count shortest path number
remove debug information in emergency code