Assuming that the orbits are two-sided orbits consider the orbit $Y$ of $x$. This is a countable compact metric space and $f$ is a homeomorphism of $Y$ onto itself. Write $Y$ as the union of its singletons and apply BCT to conclude that some point in $Y$ is open. This implies that each point of $Y$ is open because $f$ is a homeomorphism. Compactness of $Y$ implies that $Y$ is a finite set. [Look at the open cover formed by singletons].