I don't know to solve this exercise:
Let $f : X → Y$ be a continuous, closed and onto map such that $f^{−1}(y)$ is compact for every $y ∈ Y$ . Prove that $Y$ has a countable basis if $X$ has a countable basis.
I have no idea. I know only that $f$ is an identification. How can I solve ?
Fix a countable base $\mathcal B = \{ U_n : n \in \mathbb N \}$ for $X$. Note that without loss of generality we may assume that $\mathcal B$ is closed under finite unions (i.e., if $n_1 , \ldots , n_k \in \mathbb N$, then there is an $n$ such that $U_{n_1} \cup \cdots \cup U_{n_k} = U_n$).
For each $n \in \mathbb N$ define $$V_n = Y \setminus f [ X \setminus U_n ].$$ Note that since $f$ is a closed mapping each $V_n$ is open in $Y$. We will show that $\mathcal D = \{ V_n : n \in \mathbb N \}$ is a base for $Y$.
Let $W \subseteq Y$ be open, and let $y \in W$. Since $f^{-1} \{ y \} \subseteq f^{-1} [ W ]$ and $f^{-1} [ W ]$ is open by continuity, for each $x \in f^{-1} \{ y \}$ there is an $n_x \in \mathbb N$ such that $x \in U_{n_x} \subseteq f^{-1} [ W ]$. Thus $\{ U_{n_x} : x \in f^{-1} \{ y \} \}$ is an open cover of $f^{-1} \{ y \}$, so by compactness there are $x_1 , \ldots , x_k \in f^{-1} \{ y \}$ such that $f^{-1} \{ y \} \subseteq U_{x_1} \cup \cdots \cup U_{x_n}$. By the closure properties of $\mathcal B$ there is an $n \in \mathbb N$ such that $U_n = U_{x_1} \cup \cdots \cup U_{x_k}$.
Note, too, that $U_n \subseteq f^{-1} [ W ]$. Taking advantage that $f$ is a surjection, we can show that $V_n = Y \setminus f [ X \setminus U_n ] \subseteq W$. Similarly, that $f^{-1} \{ y \} \subseteq U_n$ can be used to show that $y \in V_n$.
Therefore $\mathcal D$ is a base for $Y$, and it is clearly countable.