The same way as from the mainnet, sandbox, devnet… You just call it to the specific node.
see for example:
if you would specify more your tools what you are trying to do, it would be more helpful or you expect us to show you all code examples in all languages?
If you just need specific number: 16399761 at the moment