implementation simple markov chain in count simulation probability