The default number of connections (nodes) Bitcoin Core works with is 125: 10 outbound and 115 inbound.
I use the command "bitcoin - maxconnections=300", and then I use the command "bitcoin cli getconnectioncount".
The output connectioncount is still 10. What should I do to achieve 15 outbound and 200 inbound connections?
IIRC Bitcoin Core maximum outbound/outgoing connection is 10 connections. So when you set value of
maxconnections higher than 10, it'll only affect maximum inbound/incoming connection.