Quantum state density and critical temperature in M-theory