...
Average host count = (Managed routing hosts) / (# of MS in 'Up' state)
Routing host : Host type is set to 'Routing' in host table DB
Managed routing host : Host is owned by a MS (MS id is set in host table in DB)
MS state : Refer to mshost table in DB for the state of each MS
...