$X^Y$ is the set of functions $Y \to X$. Given a particular $y$ in $Y$, how many options are there for its image in $X$? What if you consider two points $y_1$ and $y_2$ in $Y$; how many ways can they be mapped to things in $X$? What if you consider all points in $Y$?
$X^Y$ is the set of functions $Y \to X$. Given a particular $y$ in $Y$, how many options are there for its image in $X$? What if you consider two points $y_1$ and $y_2$ in $Y$; how many ways can they be mapped to things in $X$? What if you consider all points in $Y$?