5. Three non-coincident planes can divide the space into $n$ parts, then $n$ equals
(A) 4 or 6
(B) 6 or 8
(C) $4, 6$ or 8
(D) $4, 6, 7$ or 8
D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.