Approximate counting of probabilistic graphical models with Markov Chain Monte Carlo