added ability to count running engines