Real-Time Beam Monitor for Charged Particle Medical Accelerators