Landau degeneracy and black hole entropy