What do you want to do when repserver error # 5185 (row count mismatch) occurs for this particular database connection? [NOTE: ignore the 5189 in this case and pay attention to the 5185]
Typical options are ignore the error, stop_replication (ie, shutdown DSI), generate a warning message but continue processing, log the transaction to the RSSD and skip it, retry then log (retry_log) to RSSD and skip, retry and stop(retry_stop) if still not successful.
Assuming you want to ignore the error (ie, continue processing without stopping the DSI) then you need to modify the repserver errorclass that's bound to your DSI connection.
To find the name of the repserver errorclass (from within the RSSD): rs_helpdb <ds>,<db> (look under the repserver_errorclass column)
Next you need to find out if the repserver errorclass has a parent/controlling repserver (PRS) assigned to it (from within RSSD): rs_helpclass <repserver_errorclass_name>
If the repserver errorclass doesn't have a parent repserver (eg, undefined PRS) then you can assign the current repserver as the parent (from within the RS): create replication server error class <repserver_errorclass_name>
You now need to assign the desired action for error #5185 (from within the parent/controlling RS), using ignore as an example: assign action ignore for <repserver_errorclass_name> to 5185
See the Replication Server Reference Manual for details on the various commands mentioned above.