Printing out the number of transitions.