Add socket count metrics.