Getting a node's peer count

Hi everyone, I can’t seem to find any API endpoint or SDK method to retrieve the number of connected peers of a given node. Is there any way to get this information with a request? Thanks.

I don’t think that there is such a API endpoint. Whenever a connection is made a log entry is written to node.log.
By default, a node attempts to maintain active connection to 4 relays.