Let $X$ be a compact and path connected space and let $p:\tilde X\rightarrow X$ be its universal cover. I can show that if $\tilde X$ is compact then $\pi_{1}(X)$ is finite:
$\pi_{1}(X, x_{0})$ acts on $p^{-1}(x_{0})$ via $[\gamma].y=\tilde\gamma(1)$ where $\tilde\gamma$ is the unique lifting strating at y. Another observation is that Stab(y)={$[\gamma]$$\in\pi_{1}(X, x_{0})$ : $\tilde\gamma$ is a closed loop}=$p_{*}(\pi_{1}(\tilde X, \tilde x_{0}))$ where $p_{*}$ is the induced homomorphism of $p$. Since this action is transitive, there is a bijection between $p^{-1}(x_{0})$ and $\pi_{1}(X, x_{0})$/$p_{*}(\pi_{1}(\tilde X, \tilde x_{0}))$. In our case $\tilde X$ is simply connected. So $p^{-1}(x_{0})$ and $\pi_{1}(X, x_{0})$ has the same cardinality. But $p^{-1}(x_{0})$ is closed and discrete subspace of compact space $\tilde X$. so it is finite, as desired.
But I couldn't show the converse. I am new in algebraic topology and I follow Hatcher's book chapter 1. Can any one give a hint or answer? Thanks!