I would like to add below information
the “Number of publish connections” denotes the number of publish connections to the AEM.
Note that there is an additional single connection for consuming events from the AEM.
Hence, the number of connections from S4 to AEM should be: “Number of publish daemons” + 1