According to the first chapter of the HoTT book, dependent functions beget products:
$$ (x : A) \rightarrow B\,x \equiv: \prod_{x : A} B\,x $$
of which $A \times B$ is a special form ($A \times B \cong \prod_{b : \mathrm{Bool}} T\,b, T\,\mathrm{false} = A, T\,\mathrm{true} = B$),
and likewise, dependent products beget sums:
$$ (x : A) \times B\,x \equiv: \sum_{x : A} B\,x $$
of which $A + B$ is a special form.
I'm curious about the generalization of this scheme in both directions: What comes before $\rightarrow$ and after $+$ (and, possibly, so on) and how many inhabitants would these types have?
$(x : A) + B\,x$ is difficult for me to wrap my head around, since it seems to allow dependencies across alternative executions of a program. It also appears to be the case that in order to answer my question about how many elements inhabit this type, one must first describe an operation that lies beyond addition.