Factor out function to get count of systems for an org in the ui