Simplified retrieval of number of compute hosts
Ensure grep succeeds even when no computes present