Get monitor count?


Is there a way to detect how many monitors are attached to the computer? I can do this natively on both OSX and Windows but they both require system calls.


the length of the array should indicate the number of attached displays.


Thank you! My search skills couldn’t seem to find that.