Count the total number of flips