Thermal Physics!

Wavenumber k=nPi/L, where n is number of particles and L is length of one side of a box.

The part I do not understand is how to get that the number of states with wavevector between k and k+dk is L(dk)/Pi. I think it involves some sort of integral...