[avalanche] Add an accessor to the node count
Summary:
This will be used to show some status in a new RPC.
Depends on D11130.
Test Plan:
ninja check-avalanche
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D11131