Revert "Remove NumBlocksOfPeers"

This reverts commit e2ac068ceb4cbd70776de3a06dcece05f0c90068.