Continuous nondemolition measurement of boson number in a driven damped harmonic oscillator