Get the screen number of a display. A screen number is usually grabbed from the environmental variable "DISPLAY". For example, this function returns "1" if "DISPLAY=localhost:0.1".