Quantum Devices for Voltage Metrology and Photon Counting