sn-markov: Implement counting of comparators.