Problem statement:
Show that if $X$ is a separable space and $Y$, and $|Y|\leq 2^{\aleph_0}$, then there are at most $2^{\aleph_0}$ continuous functions from $X$ to $Y$.
It's not mentioned, but it'll be safe to assume that $Y$ is intended to be $T_2$. Otherwise, $X=\mathbb{R}$ with the standard topology and $Y=\{0,1\}$ with the trivial topology, would be a counter example.
Now, it can be show that if $f,g:X\to Y$ are continuous and share the same values on a dense subset, then $f=g$.
Also, if $Y$ is separable, then we can take some dense countable subset $D_Y \subseteq Y$, so for any point $y \ \in Y$ we have: $$\{q_n\}_{n=1}^{\infty}, (q_n \in D_Y) \\ \lim_{n \to \infty}q_n =y $$ so any function $f: X \to Y$ can be show to be equal to the to the limit of some series $\{f_n\}_{n=1}^{\infty}$ with $\text{Im}f_n \subseteq D_Y $.
Thus we get, in the case $Y$ is separable, $D_x \subseteq X $ is dense and countable, and $A$ is the set of continuous functions $X \to Y$: $$ |A| = |(D_Y^{D_X})^{\mathbb{N}}| \leq (\aleph_0^{\aleph_0})^{\aleph_0} = 2^{\aleph_0} $$
Problem / Question:
$Y$ is not known to be separable. It is true that any continous function will map $X$ to a separable subset of $Y$, but how can it be shown that there are at most $2^{\aleph_0}$ such subpaces?
Let $Z\subset X$ be countable and dense. Since both $X$ and $Y$ are $T_2$, a continuous function $f:X\to Y$ is completely determined by its values on $Z$ (limits of sequences commute with $f$ and a sequence can have at most one limit in $Y$). Therefore, there are at most $$|Y|^{|Z|} \le (2^{\aleph_0})^{\aleph_0} = 2^{\aleph_0}$$ continuous functions from $X$ to $Y$, with no need of assuming separability of $Y$.
As a fun, but completely useless remark, notice that if $X$ is uncountable, $|Y|\ge2$ and if we assume the continuum hypothesis, then this proves non-constructively that there exist non-continuous functions from $X$ to $Y$.