Check number of running instances