I'm having a little trouble doing exercise $4.1.20$ at page $359$ of Hatcher. It states:
Show that $[X,Y]$ is finite if $X$ is a finite connected CW complex and $\pi_i(Y)$ is finite for $i \leq \text{dim }X$", where by $[X,Y]$ we mean the homotopy classes of maps from $X$ to $Y$.
I'm guessing the idea is to induct on the cells of $X$. So starting from some $X$ for which it is true and attaching an $e_k$ to get $X'$, all maps $f:X'\rightarrow Y$ can be subdivided into the equivalence classes of the induced map on $X\subset X'$, which are finite. Taking two maps $f,g$ from the same class, we can homotope $g\mid_X$ to $f\mid_X$ and extend that to all of $g$. In particular the characteristic maps on $\partial D^k$ agree. So it seems I need to relate the finite number of $(S^k,x_0)$ homotopy types to possible map types of $D^k$ with fixed $\partial D^k$. Most things I try seem to necessitate the extension of some homotopy of $\partial D^{k}$ to $X$, but I don't think that has the extension property in general?