default int getPeerCount() {
    return getPeers().size();
  }
Returns the number of currently connected peers.

@return the number of connected peers.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/network/P2PNetwork.java