I want to simulate $\sigma$ from a measure $\pi(\sigma)$ through the Metropolis-Hastings algorithm, where $\sigma$ is a sequence of 0's and 1's on $S = \{0, 1\}^n$, the set of all sequences of 0's and 1's with a fixend length $n \in \mathbb{N}$ and $\pi(\sigma) = \textit{the number of 0's in the sequence}$.
In order to build the algorithm i need to find the distribuition of $\pi(\sigma)$ and a candidate distribuition $q$. How do I find both the distribuition of $\pi$ and a good candidate distribuition $q$? ( I know that a good distribuition will have the same support of $\pi$). Any hints or advices are more than welcome!