Is there a way to limit the number of open instances of DO?

Raw Command for adding into a button and hotkeys.