Electronic pump stroke counters monitor a mud pump's strokes per minute and total strokes, facilitating effective drilling fluid management. They operate by detecting piston movement through limit switches, which signals a counter that displays both total strokes and strokes per minute. This information helps drillers optimize rig performance and ensure smooth drilling operations.