Check the number of instances by their status