Get the active instance count correctly