For any set $A$, $|A|$ is the cardinal of the set $A$. Almost by definition, for any two sets $A,A'$ the equation $|A|=|A'|$ means that there exists a bijection $A \leftrightarrow A'$.
For any sets $F,D$, the set $D^F$ is defined to be the set of all functions with domain $F$ and range $D$. And then, like any other set, $|D^F|$ is the cardinal of the set $D^F$.
Now there's a little lemma: Given two cardinals $\alpha,\beta$, for any sets $A,A',B,B'$, if $|A|=|A'|=\alpha$ and $|B|=|B'|=\beta$ then $|A^B|=|(A')^{B'}|$. This lemma is proved by constructing a bijection $A^B \leftrightarrow (A')^{B'}$ (it's not hard to prove, try it).
Next, there's a definition: given two cardinals $\alpha,\beta$, the cardinal $\alpha^\beta$ is defined to be the cardinal of any set of the form $A^B$ where $A$ and $B$ are chosen so that $|A|=\alpha$ and $|B|=\beta$. The lemma says this is well-defined, independent of the choice of $A$ and $B$.
Finally, there's a pun: $|D^F|=|D|^{|F|}$, which is an immediate consequence of the definition, using $\alpha=|D|$ and $\beta=|F|$.