Let $A$ and $B$ be finite sets, $|A| = m$ and $|B| = n$. How many binary relations are there from $A$ to $B$?
As far I read from various resources, binary relations is nothing but just a typical (total) function. Then, does it mean that such possibilities are equal to $n^m$, or not?