Density of states for Bose-Einstein condensation in harmonic oscillator potentials