moved loading of current deployment count into separate function