basic socket counting setup