Count the number of expressions executed in do