We study the response of a detector that is coupled nonlinearly to a quantized complex scalar field in different types of classical electromagnetic backgrounds. Assuming that the quantum field is in the vacuum state, we show that, when in inertial motion, the detector responds only when the electromagnetic background produces particles. However, we find that the response of the detector is not proportional to the number of particles produced by the background.