You have an element. How many boxes does it generate?
With display: none, no box, and no descendants may generate any boxes
With display: contents, it doesn't generate its own box, so there is no principal box
With most display types, it's one principal box - the boxes generated by child elements are none of its business
With things like list-item, it generates a principal box and a marker box that corresponds to the ::marker pseudo-element (unless list-style is none), or a table generates a principal table wrapper box and in it the table box for the actual rows and columns