Expose fleet unit count in MachineState

Apologies for the general sloppiness of this, but it reflects my ambivalence about it. Let me clean it up and see if I can come up with something more pleasing.