Add RPC to check number of state machines hosted by a RM