Root multiplicities of Kac-Moody algebras