Let $X$,$Y$ be two finite topological Hausdorff spaces, how can I prove that if the two spaces have the same number of points, they must be homeomorphic?

EDIT: so sorry I missed to add the hausdorff assumption in the body, I thought it was clear from the caption.