How to get the total number of TUs on a TM server?

Hello,

we need to monitore the number of TUs on our TM Server? is there a smart function to get this count?

Thank you

Sébastien