# Finite topological space

Let $X$ be a Hausdorff topological space such that every closed subset has finitely many connected component. How can I verify that $X$ is finite?

The cofinite topology on $\mathbb{N}$ shows that being $T_1$ is not enough.