I need to find the number of pods currently NOT terminated (can be available, terminating, etc.) in order to prevent deployment from starting if there are still some pods not terminated.
UPDATE: If there are no pods available, I should get "0". Is it possible ?