This is quite an ugly one. Isn't there a better option like number of connections?