Feature request: Add a function which returns the number of running instances. (In fact, I only want to know if one instance is the only running instance.)
This is helpful if you want to behave differently on different number of instances.
My actual need is described in cpeditor/cpeditor#131, if you are interested in where this feature is useful.