code: func (s *ChainService) ConnectedCount() int32 {
  	replyChan := make(chan int32)
  
  	select {
  	case s.query <- getConnCountMsg{reply: replyChan}:
  		return <-replyChan
  	case <-s.quit:
  		return 0
  	}
  
  }
docs: // ConnectedCount returns the number of currently connected peers.