count connections