count nr. of connections